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

Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

New Ideas Forum MPA.jpg

A new place to submit your Ideas for Power Automate

Announcing a new way to share your feedback with the Power Automate Team.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

MPA Licensing.jpg

Ask your licensing questions at the Power Automate AMA!

Join Priya Kodukula and the licensing team, super users and MVPs to find answers to your questions on Power Automate licensing.

Users online (3,783)