How to iterate through the GalleryItems collection and update corresponding records in the 'PO Items' list based on the ID
ClearCollect(
GalleryItems,
Glry_Po_Items.AllItems// Replace 'Gallery1' with your gallery control name
);
ForAll(
GalleryItems,
Patch(
'PO Items',
LookUp('PO Items', ID = ThisItem.ID),
{
Title: NewPONumber
}
)
);

Mohammad HussainPosted Sep 25, 2023, 12:48 PM
Hello Raj - Do not use lookup here . Instead of update , just insert the records in the list and create a another list as reference and add those reference values .