Hello,
I'm struggling with the following code:
ForAll(invoices,Collect(invWorkOrders,Filter('[dbo].[WorkOrder]',InvoiceID=ID)));
The steps:
1) Collect the invoices related to the current billing cycle
2) For each invoice, collect all of the WorkOrders based on the WorkOrder.InvoiceID = invoices.ID.
I cannot figure out how to get the syntax to work in order to reference the invoices.ID of the current loop iteration in the ForAll. I've seen something like [@ID] before, but I can't find any record of that on the forum.
How do I reference the current record values in invoices in the above example?