Sales force Lightning API request POST

Hi I am trying to use the salesforce integration lightning request to post to a custom resource in salesforce.

When I load the json from the example rest page for the resource I get this from the lightning api response

What am I missing? I loaded the json as a string directly into a variable and loaded it in the body of the request

Activity Lightning REST API Request ended with error:
Error Code: [EXCEPTION_OCCURED]
Message: Error reading JArray from JsonReader. Current JsonReader item is not an array: StartObject. Path ‘’, line 1, position 1.

Hi @Cushing_Gregory

To fix this issue, you’ll need to make sure that the JSON you are loading into the request body is in the correct format

Regards,
Kaviyarasu N

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.