I am creating a custom connector in UiPath Integration Service for an API. My JSON body contains placeholders mapped to parameters with the Form type. However, these placeholders are not being dynamically replaced during runtime, causing the API to return a 400 Bad Request with the error: "JSON decode error".
The parameter prompt is defined as a Form type with String as the data type.
When testing, the placeholder {prompt} is not replaced dynamically, and the API fails.
If I use a Header parameter type instead, the API works correctly but doesn’t follow the required JSON body structure.
Question: How can I ensure that placeholders in the JSON body are dynamically replaced with values from Form parameters in UiPath Integration Service?
TIA.
Thanks for your response. I have tried this as well but still getting this error.
{
“requestId”: “674c7b77e4b05a2a551a5174”,
“providerErrorCode”: 400,
“message”: “Bad Request”,
“providerMessage”: “error - {message=["At body → 0: JSON decode error"], type=bad_request, code=400}”
}