Hello,
I’m trying to create an app for my company, and I encounter some difficulties regarding the exportation of my data. I'm new to power apps, so my knowledge is not yet very developed (I also didn't find similar question on internet).
I have a gallery that takes data from a SharePoint list (Test power apps 2). Picture 1 shows the gallery with the columns. The last column must be completed by the users. I also have a text input that asks for a name. The gallery is filtered according to a combobox.
: picture 1
By clicking on a button, I would like to send, in another sharepoint list (Test power apps 2.1), the selected items of the gallery and also the name entered in the textinput control, for every completed items : Picture 2.
: picture 2
Right now, I do manage to send the data completed in the gallery : code below. But I don’t know how to also send the name in the sharepoint list for every line of the gallery exported.
Concurrent(
Notify("Submitting your records...";Information);
ForAll(
Gallery1.AllItems;
Patch(
'Test power apps 2.1';
Defaults('Test power apps 2.1');
{
Title: TextInput2.Text;
Entreprise : TextInput3.Text;
Département : TextInput4.Text;
Score : Value(TextInput5.Text)
}
)
))
& Refresh('Test power apps 2') & Reset(Gallery1)
Do you have any idea how I could do this ?
Thank you in advance !
Best regards,
Emeric