I have a collection from a sharepoint list. I also have a gallery with items from the collection so whenever I patched/add new item/s to the collection, it'll automatically reflect to the gallery adding new rows. How do I patched all the items in the gallery including the old ones to the Sharepoint list? I tried doing the one below but won't work because new items have blank col IDs. Still fairly new to PowerApps so any help or workaround is appreciated.
ForAll(
RenameColumns(
price_gal.AllItems,
"ID",
"IDD"
),
Patch(
MainList,
LookUp(
Filter(
colPrice,
'Item No.' = _Selected.'Item No.'
),
ID = IDD
),{...}))