I want to save the attachments from a gallery. I have a Form and Gallery in my app. The gallery serves as a repeating table with attachment control. It is set up like the repeating table of Shane Young.
The plan is users will fill out the form and add in the details and attach documents inside the repeating table.
I am able to send the details to the SharePoint List but can’t seem to get how to patch the attachments
Is it possible to do this?.
code in create new form
Code of save icon OnSelect
Code of OnSuccess of Form
Also noticed that pressing on the save icon removes the attachment. How can I make it stay?
They are saved in the collection though.
You can't do what you are trying to do. Here is the documentation from Microsoft. The only way to upload into a SharePoint attachment column is to use a form and you can't put a form inside a gallery.
https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/controls/control-attachments
Placeholder here, working on this.
I'm using the collection as the data source for the gallery.
In your gallery are you using the collection as the data source or the sharepoint list?