Hello,
I'm using the Cronus test business central instance to test my Azure Logic App connector.
I have successfully used the Business Central connectors to create a sales order, retrieve details of that order and get the details of a particular Item which I intend to add to that order.
However, I am struggling to add an Item (Sales Order Line) to a Sales Order. I am getting back Bad Requests from the Business Central API.
ErrorCode: BadRequest The key 'documentId' does not match a key for the resource 'Sales_Order_Line_Entity'.\r\nclientRequestId: c53000c0-61b5-4c5c-a505-2d3fea5226e0"
Here is my connector:
Here is the input of my POST to the API:
I added the documentId as a key in JSON and set its value to the GUID of the documentId that is returned when getting the details of the sales order I just added.
I've tried the endpoint using Postman and I'm able to create a line with the same details and sales order so it appears the details are correct.
Is there anything obvious I've missed?
Thanks,
Nic