cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
YYZENTHAL
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
efialttes
Super User
Super User

@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!



v-zhos-msft
Solution Sage
Solution Sage

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.

 

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.

 

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.

 

 

 

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

 

 

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.

 

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
Frequent Visitor

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
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 (1,957)