I am struggling with the code to Patch all filtered items from a Gallery to a different SharePoint List. For example, there are 5 filtered items in Gallery2 and I would like each of those records to be patched to the new SharePoint list which is called RouteItineraryList. Currently it works but only copies the first 'Selected' item 5 times. How can I accomplish this? I am assuming it has to do something with the .Selected but could use some help!
ForAll(
Gallery2.AllItems,
Patch(RouteItineraryList,
{Title:Gallery2.Selected.Title,
'Route Name':Gallery2.Selected.'Route Name',
'Itinerary Creator':User().Email,
'Distributor Dealer Number':Gallery2.Selected.'Distributor Dealer Number',
'Retail Customer':Gallery2.Selected.'Retail Customer',
'Retail Customer Street Address':Gallery2.Selected.'Retail Customer Street Address',
'Stop Number':Gallery2.Selected.'Stop Number'
}
)
)

Report
All responses (
Answers (