cancel
Showing results for 
Search instead for 
Did you mean: 

How to change variables in request?

raffinkira
Participant
0 Kudos

Hi experts:

The request content type is x-www-form-unlencoded. The form data name is 'aaa'.

I want to change the value of 'aaa' by using policy before the request goes to the target endpoint.

Which policy should I use? I have tried "Extract Varibles" but don't know how it works.

Anyone could help?


Regards,

Ming

Accepted Solutions (1)

Accepted Solutions (1)

divyamary
Contributor
0 Kudos

Hi Ming,

You can use an AssignMessage policy or alternatively JavaScript policy to change the variables. So based on your use-case , you can combine an Extract Variable policy to read the data and Assign Message or JS to set the data.

Thanks and Best Regards,

Divya

raffinkira
Participant
0 Kudos

I just want to change the existing parameter in request, so after trying I found only Assign Message is enough to work.

Thank you very much for your help.

Answers (0)