cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Z_Lukowski
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'

 Z_Lukowski_0-1612873067202.png

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:

Z_Lukowski_1-1612873281579.png

3) Then I want to Update Status of table2 records if they have a lookup in Table1.

Z_Lukowski_3-1612873900908.png

 

Any Suggestion to fix this Flow would be great.

 

1 REPLY 1
ManishJain
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.

 

Thanks 

Helpful resources

Announcements
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,942)