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

Mohammad HussainRank #513 · 4.8K reputationPosted Sep 25, 2023, 8:48 AM EDT
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 .