cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
YYZENTHAL
Level: Powered On

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
Super User
Super User

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





If anybody solved your question, remember to mark its post as a solution!

Proud to be a Flownaut!





v-zhos-msft
Level 10

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.

 

YYZENTHAL
Level: Powered On

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.

 

v-zhos-msft
Level 10

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.

YYZENTHAL
Level: Powered On

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

 

 

v-zhos-msft
Level 10

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.

 

YYZENTHAL
Level: Powered On

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.

YYZENTHAL
Level: Powered On

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

Microsoft Business Applications Virtual Launch Event

Watch the event on demand for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 Release Wave 2 Plan

Power Platform 2019 Release Wave 2 Plan

Features releasing from October 2019 through March 2020.

thirdimage

Flow Community User Group Member Badge

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

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Flow Community Video Gallery!

Top Kudoed Authors
Users Online
Currently online: 93 members 3,682 guests
Please welcome our newest community members: