I have a scenario , where i have to use the key value pair to get thevalue using key using kvm policy and once i receive that value then i have to pass to python script ...do i need to use that as a flow variable or assign message and getting via request param ? which one is the valid option and to get the python script policy running from the value what i pull from kvm or else do we have any method to pull directly from python the key value pair ?
pls help me.
The easiest option is
KeyValueMapOperations policy [1] => get value into a flow variable; then
PythonScript policy [2] => read from the flow variable
[1] https://docs.apigee.com/api-platform/reference/policies/key-value-map-operations-policy
[2] https://docs.apigee.com/api-platform/reference/policies/python-script-policy