Hi everyone,
This is my first time building a Power App. Appreciate if anyone could help me, Thanks!
I wanted to let user able to upload multiple attachments, and these attachments will then be added to a SharePoint list item. I have used Power App V2 in Power Automate to do so, however, I've only managed to do so with one attachment. Below is my code and the flow:
Set(VarJSON,JSON(Image1.Image,JSONFormat.IncludeBinaryData));
Set(VarBase64,Mid(VarJSON,Find(",", VarJSON)+1,Len(VarJSON)-Find(",", VarJSON)-1));
ClearCollect(
ArrayDoc,
{
ID:currentItem.ID,
AttachmentName:Last(attachment.Attachments).Name,
AttachmentBase64: VarBase64
}
);
Rev_Trac_SubmitDocs.Run(JSON(ArrayDoc),User().Email);



What mistake I could have probably done wrong? The user able to upload multiple attachments in Power App, but SharePoint item can only capture one attachment. Please help me, thanks!