cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
SaschaKB
Level: Power Up

How to lookup information in another SharePoint List and save the output in a variable?

Hello everyone,
In my scenario I have a list called "Tickets". This is the basic list and a Flow runs each time, when a item is created.

While creating a ticket/item the user types in the serial number.

Based on the serial number the Flow shall lookup addional information like customer and customer number based on the list "MachineFiles".

If I just want to update the item after I found the correct entry, everything works fine:
2018-12-02 16_33_06-Edit your flow _ Microsoft Flow.png

 

 

Due to different switches in my Flow I want to modify my flow.
I want to collect all relvant information and store them in variables first.

At the end of my Flow I want to update the item once instead of several times.

 

Based on the serial number, how is it possible to lookup additional information in a second list, store them in variables and set them at the end of the Flow.

Unfortunately, my modified approach do not update anything:

2018-12-02 16_36_39-Edit your flow _ Microsoft Flow.png

 

2018-12-02 16_32_11-Edit your flow _ Microsoft Flow.png

 

2 REPLIES 2
Super User
Super User

Re: How to lookup information in another SharePoint List and save the output in a variable?

@SaschaKB

 

I don't see anything obviously wrong with your Flow from the information that you have provided.  

Have you checked the run history and looked at where the variables are being set and where the variables are being used?  Do they refelect the values that you expect?

Are you receiving any erroes?

Can you tell me more about the EmptyString variable?

If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Scott
SaschaKB
Level: Power Up

Re: How to lookup information in another SharePoint List and save the output in a variable?

Hi Scott,

Thanks for your reply.

Due to your post I checked the history and in a copy of my flow I tried to reduce the complexity of my flow.

Finally I did a basic test. I created the following flow in order to check the update behaviour:

2018-12-08 15_06_09-Window.png

The idea behind above flow is the same like in my "complex" scenario. When an item is created, the flow adds additional metainformation to the new created item.

After doing some further research I found out that I created an infinite loop flow.

I do not create flows day by day, but I think that the behaviour is different compared to Nintex Workflows or to former SharePoint Designer and Visual Studio Workflows. Is there an explanation why MS changed the update behaviour?

In a next step I will extract some business logic from the flow and I will implement it in the related PowerApps Form.

 

 

 

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: 53 members 3,374 guests
Please welcome our newest community members: