Hi All,
I need to call a third part POST API Call with fill in Header and Request Body parameters. Its OAuth2.0 and i am able to pass the JWT-Token in the request. Everything works fine.
But I have to pass one parameter in the same request body with different values. i was able to do the same with PostMan and its working fine. But i am unable to do the same step with UiPath.
Parameters collection is not allowing to add/repeat same argument with different values like PostMan. So i am stuck here how to frame multiple variable values to one argument and pass it. Please help me.
You can try formatting the repeated parameter values as a JSON array in the request body if the API supports it—something like "custom_behavior": ["value1", "value2"]. UiPath doesn’t support repeating the same key in the dictionary, so using a properly structured JSON string might help. Also, make sure to set the content type to application/json if you’re switching from form-data.
@sonaliaggarwal47 Unfortunate target API system is not allowed to pass the request body in Json format. They are accepting only form-data. Even i pass the key value pairs in request body parameter as a string, i am not getting success response. So i have left with only option to use the parameter wizard and pass multiple values under a same variable.
@sonaliaggarwal47 Sorry to say this, tried all options. Since i need to pass a URL in the parameter, whatever concentration i tried, the target system considers its part of the URL and expected behavior is changing.