Hi all,
I am trying to pass in some JSON to the Encodian word populator but keep getting an error.
I don't know what I'm looking for so was hoping someone might be able to help with this.
I have taking all the image attachments on a SharePoint list item and put them into an array. Joined them together into a string separated by a comma delimitator and then put them into the JSON. The JSON and the error are below.
Error:
{
"statusCode": 400,
"headers": {
"Pragma": "no-cache",
"Request-Context": "appId=cid-v1:0dacbed6-da67-4d12-94b4-2378f6427ff0",
"api-supported-versions": "1.0",
"X-Cache": "CONFIG_NOCACHE",
"X-Azure-Ref": "0hQ2JZAAAAAC9qxV3hqcuTrzvkvZWqNJ+TUVMMDFFREdFMjExMQAzOTcwZDFlNS1kODBiLTQ2NWEtYjM1Yi0wNzBjMDE2ZWU0NzI=",
"Timing-Allow-Origin": "*",
"x-ms-apihub-cached-response": "false",
"x-ms-apihub-obo": "false",
"Cache-Control": "no-store, no-cache",
"Date": "Wed, 14 Jun 2023 00:44:59 GMT",
"X-Powered-By": "ASP.NET",
"Content-Length": "356",
"Content-Type": "application/json"
},
"body": {
"HttpStatusCode": 400,
"HttpStatusMessage": "Bad request",
"OperationId": "7ba9166b-3022-42e7-bb94-961e21ecfb40\\1",
"Errors": [
"The following error occurred populating the word document provided: Object reference not set to an instance of an object."
],
"OperationStatus": "Error"
}
}
JSON:
{"formContent":[{"content":"I have removed the content here but it was base64 from the Get File Content action."}]}
And this is what the word template looks like:

Appreciate any help,
Thanks