Access JSON payload properties in Assign Message policy

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 Solved
4 1 1,677
1 ACCEPTED 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.

View solution in original post

1 REPLY 1

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.