I have a collection from a Dataverse table; 'Tickets'
ClearCollect(col_TicketsToBeRedeemed,
FirstN( Sort( Filter( Tickets, Redeemed_Date = Blank() And Ticket_Owner = "John@Smith.com"),
Issued_Date, Ascending), 1 ));
With this collection 'col_TicketsToBeRedeemed', I need to loop through each individual record and update a field called 'Redeemed_Date' in the DB table.
ForAll( col_TicketsToBeRedeemed,
Patch( Tickets,
LookUp( Tickets, ThisRecord.Id = col_TicketsToBeRedeemed[@Id]),
{ Redeemed_Date: Now() }
)
);
The initial collection 'col_TicketsToBeRedeemed' was created from the same table I am attempting to Patch to. 'Tickets'
The column headers in the collection and table are the same.
The field 'Id' is a Autonumbered field type.
There is a Unique Identifier field 'ticketsid' which I've also attempted to match on but no luck.
I have tried many many different iterations of this in hopes of getting to work without success.
Any assistance would be much appreciated.