I found that we can do request.header.{header_name}.value to get header values.
Instead of doing a extract variable for each property and then use Assign Message.
Is there any way we can use directly the properties of JSON payload in Assign Message?
It would be a good enhancement to access payload using JSONPath or XPath in policies if its not available already.
Solved! Go to Solution.
Great Question & Suggestion @Mohammed Zuber ,
I don't think Assign Message Policy supports jsonPath or Xpath as of today. You need to use java callout / javascript / extract variables & then assign message to do same as of today.
EDIT: not quite completely true. See answer lower in this thread.