1
Answer

How to iterate through the GalleryItems collection and update

Photo of Rajkiran Swain

Rajkiran Swain

1y
826
1

 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)