Rajkiran Swain

Rajkiran Swain

  • 29
  • 40.7k
  • 3.3m

How to iterate through the GalleryItems collection and update

Sep 25 2023 10:58 AM

 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
        }  
    )
);

 


Answers (1)