https://learn.microsoft.com/en-us/dynamics365-release-plan/2022wave2/smb/dynamics365-business-central/power-apps-power-automate-support-document-attachments
"The new capability of the connector allows for easy access to document attachments (for instance, an original order request linked as a PDF to a sales order), related record media (for instance, images linked to items) and other data linked to business records. "
I've tried doing this with document attachments on Purchase Orders, but it doesn't seem to work as I expected. Even getting the system IDs manually and plugging them into the PA action doesn't seem to work.
Here's the system ID of the attachment
Here's the system ID of the Purchase Order
I set up the simplest test that I could in Power Automate:
But I get an error "Resource Not found"
{
"statusCode": 404,
"headers": {
"Pragma": "no-cache",
"Cache-Control": "no-cache",
"Set-Cookie": "ARRAffinity=06c56b8471ef26f13c61783eeb00d8e15bf74407238d9c8d8936521d5d5d2dd0;Path=/;HttpOnly;Secure;Domain=dynamicssmbsaas-wus.azconn-wus-001.p.azurewebsites.net,ARRAffinitySameSite=06c56b8471ef26f13c61783eeb00d8e15bf74407238d9c8d8936521d5d5d2dd0;Path=/;HttpOnly;SameSite=None;Secure;Domain=dynamicssmbsaas-wus.azconn-wus-001.p.azurewebsites.net",
"x-ms-request-id": "20d8de25-4f81-455b-af7d-98b8f456f783",
"X-AspNet-Version": "4.0.30319",
"X-Powered-By": "ASP.NET",
"Strict-Transport-Security": "max-age=31536000",
"X-Content-Type-Options": "nosniff",
"X-Frame-Options": "DENY",
"Timing-Allow-Origin": "*",
"x-ms-apihub-cached-response": "false",
"x-ms-apihub-obo": "false",
"Date": "Thu, 23 Mar 2023 14:31:07 GMT",
"Content-Length": "487",
"Content-Type": "application/json",
"Expires": "-1"
},
"body": {
"status": 404,
"message": "ErrorCode: BadRequest_ResourceNotFound Resource not found for the segment 'attachment'. CorrelationId: 02bdaba8-263a-49ba-ae2d-5737add7ada9.\r\nclientRequestId: 20d8de25-4f81-455b-af7d-98b8f456f783",
"error": {
"message": "ErrorCode: BadRequest_ResourceNotFound Resource not found for the segment 'attachment'. CorrelationId: 02bdaba8-263a-49ba-ae2d-5737add7ada9."
},
"source": "api.businesscentral.dynamics.com",
"errors": []
}
}
Does anyone have any ideas on what I'm doing wrong? Have I just misunderstood what this update is capable of?