Showing results for 
Search instead for 
Did you mean: 
Resolver I
Resolver I

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.



Any Suggestion to fix this Flow would be great.


Solution Sage
Solution Sage

Hi @Z_Lukowski ,


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.



Helpful resources

UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Users online (1,822)