Original Message:
Sent: Tue November 04, 2025 10:14 AM
From: Steve Linn
Subject: How to read input variable in policy
Hi Abdelazim,
There are numerous sample custom policies at https://github.com/ibm-apiconnect/policy-apigw/tree/master/user-defined-policies that you can use as examples. I believe you will access your UDP property using the variable local.parameter.code. When your UDP is executed, all of the values for that instance of the policy will be in local.parameter.<property name>.
Best Regards,
Steve
------------------------------
Steve Linn
Senior Consulting I/T Specialist
IBM Retired
Original Message:
Sent: Tue November 04, 2025 07:51 AM
From: Abdelazim Elkhole
Subject: How to read input variable in policy
Hi,
I tried to use a map in a custom policy, but I also can't able to access the input
I attached the YAML file can look for it and tell me if I did anything wrong
------------------------------
Abdelazim Elkhole
Integration Developer
Envnt
Riyad
0508866204
Original Message:
Sent: Tue November 04, 2025 04:28 AM
From: Nick Cawood
Subject: How to read input variable in policy
Hi,
You can use a MAP policy to read an input into a custom policy: https://www.ibm.com/docs/en/api-connect/10.0.8_lts?topic=policies-map
------------------------------
Nick Cawood
API Connect Consultant
IBM Expert Labs
IBM UK Ltd
https://www.linkedin.com/in/nickcawood/
Original Message:
Sent: Mon November 03, 2025 02:17 AM
From: Abdelazim Elkhole
Subject: How to read input variable in policy
I created a custom policy and declared one input for this policy as a string, and I need to read this input to perform further operations on it.
What is the correct syntax to read it?

------------------------------
Abdelazim Elkhole
Integration Developer
Envnt
Riyad
0508866204
------------------------------