I have a gallery that repeats its contents. It has one text input for a person's name and another for their email. Users may click a plus icon (the icon is not in the gallery) to produce a new row that has both of these text inputs. They can click the plus icon as many times as they like, and it will produce a new row each time. I believe the technical term for such a set up is "repeating table".
My hope was that I could use ForAll(galleryName.AllItems, [...])
to loop through each of these text inputs and write each pair as a new row in my back end SharePoint List. However, it appears that .AllItems
loops through the members that make up the gallery rather than the elements that the user sees. For example, I believe that a repeating table with 100 repetitions of its row would have the same number of items in galleryName.AllItems
as a repeating table that only had its original row.
Is there any way to write a loop that loops through the members of a gallery and respects the repetitions? My ultimate goal would be to write some code like this
ForAll(galleryName.AllItems As gal, //Doesn't work because AllItems isn't what I want.
Patch('My SharePoint List',
Defaults('My SharePoint List'),
{Name: gal.txtInputThatHoldsTheName.Text, Email: gal.txtInputThatHoldsTheEmail.Text}))