I have created an app where I want to patch an attachment field to a SharePoint List, but the attachments field is not listed as a field in my SharePoint list per powerapps notification. I know I can attach files using the edit form feature, but all of the other fields in my app are not within a form. Help! 🙂
Solved! Go to Solution.
Here's how I got accomplished this after I could not get @v-xida-msft 's method to work.
Patch(SharepointList, LookUp(SharepointList, eventId = varEventId), frmMainForm.Updates, frmAttachments.Updates
Hope this helps!
The LookUp function is used to identify a single record in a DataSource. Since I want to add attachments to only a single record, I use LookUp. In some cases, you could also use First(Filter()) to perform the same.
You need to put whatever text fields/dropdowns/dates etc inside of the patch OBJECT section... then (because Patch() allows for extra parameters) you add another parameter to patch... called Form1.Updates. So that will patch all records you created (your custom form) AND it will grab the "update" info from your form, (where the only field is Attachments) and will include all of that in 1 single patch.
Check out new user group experience and if you are a leader please create your group
Check out how to claim yours today!
Test your skills now with the Cloud Skill Challenge.
We are excited to announce that Demo Extravaganza for 2021 has started!
On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks