Title is kind of the issue. I don't know how to update the Body and can't seem to find it by clicking our on the Documentation. Only things I see are the Params and Header
*** Solution Here ***
Hi @Sakthivel M,
Thanks for replying. I managed to solve this issue.
Here is some more details in case anyone else is facing the same issue:
- The tool was "HTTP Action" in a OmniStudio Integration Procedure.
- The issue was that All parameters I passed as part of the payload were not being added to the JSON body and therefore not being sent over with the request. The error message I was getting in the response was:
{
"success": false,
"info": {
"statusCode": 400,
"status": "Bad Request",
"Content-Type": "application/json;charset=UTF-8",
"Date": "Tue, 23 Nov 2021 21:07:49 GMT",
"X-XSS-Protection": "1; mode=block",
"Set-Cookie": "BrowserId=xxx; domain=.salesforce.com; path=/; expires=Wed, 23-Nov-2022 21:07:49 GMT; Max-Age=31536000;LSKey-c$CookieConsentPolicy=0:1; domain=TEST.my.salesforce.com; path=/; expires=Wed, 23-Nov-2022 21:07:49 GMT; Max-Age=31536000;CookieConsentPolicy=0:1; domain=TEST.my.salesforce.com; path=/; expires=Wed, 23-Nov-2022 21:07:49 GMT; Max-Age=31536000",
"X-Content-Type-Options": "nosniff",
"Cache-Control": "no-cache,must-revalidate,max-age=0,no-store,private",
"Strict-Transport-Security": "max-age=31536000; includeSubDomains",
"X-Robots-Tag": "none",
"Transfer-Encoding": "chunked"
},
"result": [
{
"message": "The request body must contain a _______ definition",
"errorCode": "118"
}
]
}
The solution was:
- Add "Content-Type" to the Integration Procedure > Rest Options > Header.
- Example: "Content-Type": "application/json; charset=UTF-8"
- Add Body Parameters as "Additional Input"
- Add "Content-Type" to the Integration Procedure > Rest Options > Header.
Here is an example: