Updating a record based on another records state - question about syntax / logic
Hello Power users,
I'm creating a flow, in which based on another table column, I want to update all records from different table (all in CDS)
Table1 is in one-to-many relationships and Table2 have lookup to Table1, which contains Table1 Unique ID name
1) Step one:
I'm trying to list rows based on condition of certain column X_statusX, which has Data type = choice. Please tell me if this approach is ok and if syntax is correct, I'm not sure about X_statusX = 'choicename'
2) Step 2
Based on value from first Step I want to list rows from second Table, So created For Each and took Step 1 value as arrows indicates:
3) Then I want to Update Status of table2 records if they have a lookup in Table1.
If I am getting it right you want to update child entity data based on Look up field which has certain status , then why not use fetch xml (advanced find) to get your required data first. Then you can put this fetch in list records with selected columns you want. Then do further processing.