cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Frequent Visitor

Replacing "Apply to each" with "Apply to each (That equals this ID)"

Hello Flow Community,

I am attempting to modify an existing flow.  The Process is as follows: User fills out a MS Form, The MS Form information fills out a record on a SharePoint "Digital" list (This succeeds fine), When a new item is created in that List it will trigger a Date value in another "Master" list (This doesn't work as intended).  

I am using an "Apply to Each" action to reference the ID on the "master" list, then update a specific column with the date value.  What it does, is it auto generates the date value into all records for that list.  I have users produce their name on the MS form and i would like that produced name to reference the name on the "Master" list via the "Digital" list.

Flow does not recognize Form dynamic content far enough to make that connection.  How do I make this connection without force filling all records in my "Master" list?


Capture.PNGCapture1.PNGCapture2.PNGCapture3.PNG

8 REPLIES 8
Highlighted
Dual Super User III
Dual Super User III

Re: Replacing "Apply to each" with "Apply to each (That equals this ID)"

@YYZENTHAL 

Just after Sharepoint "Get items" action block and before "apply to each" I would suggest to use a "Filter array" action block (more information here)

Hope this helps



Each time you click on any of our inspiring answers 'Thumb up' icon...
...an ewok scapes from the stormtroopers.

Be grateful, Thumbs up! Save the Galaxy for free!


Escribo sobre Power Automate en:
https://medium.com/anyone-can-automate/

Proud to be a Flownaut!



Highlighted
Solution Sage
Solution Sage

Re: Replacing "Apply to each" with "Apply to each (That equals this ID)"

Hi @YYZENTHAL ,

I am afraid you need a related column between  "Digital" list and "Master" list.

For example in these two column, they all has a 'User' column with the same value.

Then you can get the specific item you want to update in "Master" list via the 'User' column value.

Capture3.PNGCapture4.PNG

Best Regards,

Community Support Team _ Zhongys

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

Highlighted
Frequent Visitor

Re: Replacing "Apply to each" with "Apply to each (That equals this ID)"

Ok the the condition seemed to work.  The Data that I need to equal each other is a Text Column in the "Digital" list and an Indexed look-up column in the "Master" List.  I guess they don't natively, the condition returns a false value.  Is there a conversion that i can do within flow?  Am i making this too hard?  This has pushed the limit of my understanding of Flow.  I normally do not touch the expressions and what not.

 

Highlighted
Solution Sage
Solution Sage

Re: Replacing "Apply to each" with "Apply to each (That equals this ID)"

Hi @YYZENTHAL , 

Could you please share a screenshot of your flow's configuration?

Could you please share a screenshot of the "Digital" list and the "Master" List.

I am afraid I need more details to analysis for you.

Best Regards,

Community Support Team _ Zhongys

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Highlighted
Frequent Visitor

Re: Replacing "Apply to each" with "Apply to each (That equals this ID)"

 

 

 

Here is the newest addition to the Flow.  With the condition added.

Capture4.PNG

 

 

 

I will only provide a screenshot of the column settings.  I don't want to cover 100s of datapoints.

 

Here is the Column from the "Master" list

Capture5.PNG

 

And here is the Column from the "Digital" list.  These are the only two columns that i need to be equal to each other.

 

Capture6.PNG

 

 

Highlighted
Solution Sage
Solution Sage

Re: Replacing "Apply to each" with "Apply to each (That equals this ID)"

Hi @YYZENTHAL ,

You should set lookup column infromation from the"Digital" list.

Capture.PNG

Best Regards,

Community Support Team _ Zhongys

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

Highlighted
Frequent Visitor

Re: Replacing "Apply to each" with "Apply to each (That equals this ID)"

The intention for this flow was to copy it for multiple uses.  The idea is that a dozen lists will be referencing this "Master".  I do not want my Index to circle back and reference the same list it is trying to pull data from.  That is a 1:1 relationship I am attempting to make a 1:10 relationship.

Highlighted
Frequent Visitor

Re: Replacing "Apply to each" with "Apply to each (That equals this ID)"

After more testing, I have found my problem.  I have no idea how to reference the data in the look-up column.  The "Digital" column is a string and it does not equal the look-up in the "Master".  What is the value of look-up columns and how can i reference them in Flow?  The look-up is referencing a Single-line text column from another list.  So in general this is what doesn't work. 

 

List 1(Single-Text column) -> List 2(Look-up column) =/=  List 3(Single-text column)

 

I imagine it looks like this in the code,

 

List1.Column.Text -> List2.Column.Value =/= List 3.Column.Text

Helpful resources

Announcements
firstImage

Super User Program Update

Three Super User rank tiers have been launched!

firstImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

Top Solution Authors
Top Kudoed Authors
Users online (7,950)