Sir.... you are a genius ! It has been hours trying to mimic an attachment control in power apps, and you gave me the answer to trick power apps. Genius!!!!!!!!!!!!!!!!!!!
we can use Power Automate. Add an instant power app trigger to your flow and except the inputs from power apps. Pass the attachment in form of binary data and you can use parse the json in the flow.
To Patch it using submit button we can create a collection for Ex: ClearCollect(TestColl, DateCardValue2.Attachments) and then pass the details in json format to Power Automate for adding attachments to the item. Ex: PowerAutomate.Run(ForAll(TestColl,JSONFormat.IncludeBinary))
Sir.... you are a genius ! It has been hours trying to mimic an attachment control in power apps, and you gave me the answer to trick power apps. Genius!!!!!!!!!!!!!!!!!!!
Nice explanation
Please how do you submit attachments that isn't part of a form to a data source just like you got it in this video ?
we can use Power Automate. Add an instant power app trigger to your flow and except the inputs from power apps. Pass the attachment in form of binary data and you can use parse the json in the flow.
@@PowerAppWizard-xl3ow okay. I thought we could patch the attachment as a record to a sharepoint list. That's exactly my challenge
Can you make a video for the patch code? I'm not understanding your reply below. Please and thank you.
Are the documents saved sharepoint list?
It depends we can save either in SharePoint document library or One drive too
It would have been nice if you showed us the microsoft list you used.
you can use any SharePoint list, I have picked a random list too for the example
Please show patch code in the submit button
To Patch it using submit button we can create a collection for Ex:
ClearCollect(TestColl, DateCardValue2.Attachments)
and then pass the details in json format to Power Automate for adding attachments to the item.
Ex: PowerAutomate.Run(ForAll(TestColl,JSONFormat.IncludeBinary))