Hi all
I've got a flow that triggers when a purchase order is updated, and the trigger outputs the following example body:
{
  "Environment Name": "PRODUCTION",
  "Company Id": "a09476e9-c743-ed11-946f-xxxxxxxxxxx",
  "Row Id": "697c1e16-3a50-f011-be59-xxxxxxxxxxx"
}
The next step in the flow tries to retrieve this purchase order with this input:
{
  "bcenvironment": "PRODUCTION",
  "company": "a09476e9-c743-ed11-946f-xxxxxxxxxxx",
  "dataset": "v2.0",
  "table": "purchaseOrders",
  "id": "697c1e16-3a50-f011-be59-xxxxxxxxxxx"
}
And occasionally the flow fails with this error:
{
  "status": 404,
  "message": "ErrorCode: BadRequest_ResourceNotFound  Resource not found for the segment 'purchaseOrders'.  CorrelationId:  50c55ca3-6305-45e0-9e6a-xxxxxxxxxxx.\r\nclientRequestId: 528b3e24-eaec-4e0d-81a4-xxxxxxxxxxx",
  "error": {
    "message": "ErrorCode: BadRequest_ResourceNotFound  Resource not found for the segment 'purchaseOrders'.  CorrelationId:  50c55ca3-6305-45e0-9e6a-xxxxxxxxxxx."
  },
  "source": "api.businesscentral.dynamics.com",
  "errors": [
  ]
}
 
I don't understand how BC can indicate a modification to a record and fractions of a second later, the record doesn't exist. I've updated my logging to include ids when a PO is created, so that I can try follow what's happening.
But if anyone has any insights into what might be going on, it would be most appreciated.