Hey everyone,
So I've got 2 lists here,
SharePoint Picture Library: Auction Item Photos
SharePoint List: Auction Items
In Auction Item Photos, I have a lookup column called Auction Item LookUp which looks up to the Auction Items list and grabs an auction item, essentially making it so that one photo can be re-used by multiple auction items.
I'm trying to make it so that after the Admin creates an Auction Item, they can go in and select all the pictures they want associated with the created item.
Once you click "Done" I want to loop through all the selected photos and add the selected Auction Item to the Auction Item LookUp column.
Currently with my code if I click "Done", it adds the items to the correct photos no problem.
But once I select a different Item to add photos to, its replacing the previous values
ClearCollect(
AddImages,
AuctionItemImageGallery_1.AllItems
);
RemoveIf(
AddImages,
Checkbox3.Value = false
);
ForAll(
AddImages,
Patch(
'Auction Item Photos',
{ID: ThisRecord.ID},
{
'Auction Item LookUp': Table(
{Id: Gallery1.Selected.ID},
{Value: Gallery1.Selected.Title}
)
}
)
)I believe it may be something to do with the ID I'm using but I've gone too deep, need another set of eyes 🙂
Hopefully makes sense, will clarify if needed.

Report
All responses (
Answers (