cancel
Showing results for 
Search instead for 
Did you mean: 
Rahman1005

How to have multiple attachments in power apps

First, we need create simple form as show below using SharePoint list which has the following columns - Full Name, attachments inbuild column.

 

Rahman1005_0-1708921824439.png

 

Next, we need add two attachments “datacard” by navigating to field property of the form has shown in below screen.

Rahman1005_1-1708921824442.png

 

By Clicking on fields, we can add multiple “data cards” on the form.

 

Rahman1005_2-1708921824444.png

 

 

Now, basically if we submit the form what will happens is all the “data fields” inside the “data cards” get submitted into the list. But you will see only one attachment will get submitted.

Rahman1005_3-1708921824447.png

 

Rahman1005_4-1708921824448.png

 

To Resolve this issue, we will get all the attachments from the attachments controls, and we need to remove the “data fields” from the both attachments has shown in below screens.

Rahman1005_5-1708921824451.png

 

 

Rahman1005_6-1708921824454.png

 

Next, we need to add another form inside the screen and must connect same “data source” as the previous form and add one more attachment control.

we need to set collection to the need added attachment control, later we need hide this form from screen.

Rahman1005_7-1708921824455.png

 

 

Rahman1005_8-1708921824459.png

 

 

Then simply by submitting the main form which is form1. then we need to patch the 2nd form and updates function into the same record by using "Form1.LastSubmit.ID".

Rahman1005_9-1708921824463.png

 

 

Now if we submit the form we will see all the attachments from both the controls are there inside the list and before the form gets reset you need to turn on the visibility of the 2nd form, you will see something like below screen.

 

Rahman1005_10-1708921824465.png

 

This Data is finally submitted list.

 

Rahman1005_11-1708921873854.png

 

Thank you..!