How to retrieve Request Body parameter in the Assign Message policy
You can use below flow variable, You can find list of flow variables here.
request.content
request.content return all request body parameters , I need to retrieve each aparametr in the variable and then create a XML request payload.
How to retrive from list of request body parameters?
@RejeevChaturvedi , What do you mean body parameters ? What is the content type ? JSON / Form Data ?
It is form data. we are creating payload(application/xml) in the Assign Message Policy where we are using request body parameter.
By using JavaScript policy, we are able to retrieve all form params but not in Assign Message policy.
Ex; context.setAttribute("formparam" request.formparams.body1); // it is working fine.
In Assign Message policy:
<Payload>
<!-- limit is mandatory parameter -->
<ProbeSearch>
<vin>request.formparams.body1</vin>
........
</ProbeSearch>
<ProbeSearch>
<vin>formparam</vin> <!-- the above set form param in JS Policy -->
........
</ProbeSearch>
</Payload>
Can you pls provide a solution ASAP?
Thanks,
Kumar/Rajeev.
Hi Anil,
When adding Request Body and Header parameters in Assign Message Policy to create Xml Paylaod, it will accept only thos parameters which I added first - For example, when added 5 Header parameter and then six Request Body or Form param , it will accept only Headers fields but not the Body parameters.
Any clue, where is the problem?
Is there any possibility to retrieve a special part of my requst / response?
Like, "request.content.roottree.subtree.element"?
I wanna use a special value in my condition string of a condition flow.
Is there any possibility to retrieve a special part of the payload?
Like "request.content.PATH.PATH.PATH..." ?
It is possible & I have answered in your Question. Lets discuss over there.
User | Count |
---|---|
2 | |
2 | |
1 | |
1 | |
1 |