Hello Community!
I'm trying to use a flow to get attachments using an EditForm Attachment control, DocAttachments, to upload multiple files and patch them to an existing SharePoint list item. I'm using the information in a Gallery, AttachmentSearch, to locate the SPO list item by ID and patch the selected files to that item. The flow is failing with the error message, 'the value 'file name', cannot be coverted to a number.' Screenshots of my flow structure are below along with the button, btnSubmitAtachment, OnSelect code I'm using in PowerApps. Any help with this is truly appreciated.



If(!IsEmpty(DocAttachments.Attachments),
ForAll(DocAttachments.Attachments,
UploadAttachmentII.Run(
ThisRecord.Name, // fileName
JSON(ThisRecord.Value, JSONFormat.IncludeBinaryData), //fileContent in base64
AttachmentSearch.Selected.ID // itemID
)
)
);
Patch(
TestOSCMain,
AttachmentSearch.Selected,
{
SupportingAttachments: rdoDocUpload.Selected.Value
}
);