I have a flow that goes from Get items, uses the ID to then Get attachments and from that response, use the File ID (body/Id) to delete the attachement. However I get this error and belive the Get Attachements is returning the wrong thing in Id.
Get items returns correctly and I can use the ID to then Get Attachements.
The Attachement ID though is something like: "Id": "%252fLists%252bMonthly%2bReports%252fAttachments%252f6%252fcompany-service-monthly-snapshot.pdf"
I then use that ID in Delete Attachment and get this error:
OpenApiOperationParameterTypeConversionFailed. The 'inputs.parameters' of workflow operation 'Delete_attachment' of type 'OpenApiConnection' is not valid. Error details: Input parameter 'itemId' is required to be of type 'Integer/int64'. The runtime value '"%252fLists%252bMonthly%2bReports%252fAttachments%252f6%252fcompany-service-monthly-snapshot.pdf"' to be converted doesn't have the expected format 'Integer/int64'.
Output from Get Attachements:
"body": [
{
"Id": "%252fLists%252bMonthly%2bPriority%2bReports%252fAttachments%252f6%252fcompany-service-monthly-snapshot.pdf",
"AbsoluteUri": "https://<comnpany>.sharepoint.com/sites/S/Lists/Monthly Priority Reports/Attachments/6/company-service-monthly-snapshot.pdf",
"DisplayName": "company-service-monthly-snapshot.pdf",
"@odata.type": "#Microsoft.Azure.Connectors.SharePoint.SPListItemAttachment"
},
{
Should the Get Attachements be returning a integer on the body/Id for each attachement? Anyone else seen this issue? Any workarounds or have I totally got the wrong Id!
This is the same result if the attachment is added to the list via sharepoint or via power automate.