Moderator
Has successfully completed the online course Intermediate (200)
Has successfully completed the online course Advanced (300)
Has successfully completed the online course Basics (100)
Has successfully completed the online course Advanced (310)
Has successfully completed the online course Advanced (320)
Has successfully completed the Intermediate Certification
Has successfully completed the Advanced Certification 3 years ago
#34473
::
Hi Roman,
Have you checked if the data that you are sending in the postBody has a valid JSON format? Instead of sending the complete JSON object as a parameter, you can also split the postBody fields into several string input parameters, e.g., postBody/name, postBody/city etc. I included a screenshot of an example where several postBody parameters are used.
Regarding the csrf token: depending on the API that you’re using, authorization tokens sometimes need to be sent in the header parameters (see screenshot). Please check your API’s specifications.
In general, to execute a Connector call in a Server-Side Business Object function, you need to wrap the input parameters in an object:
var oResult = Simplifier.Connector.ConnectorName.callName({
paramName1: "your parameter value",
paramName2: calculateParameterValue()
});
I hope this information is helpful.