cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
BCBuizer
Super User
Super User

Add associated column data to a CSV

Hi All,

 

I'm trying to build a flow that frequently creates a report in a CSV from data that is stored in a SharePoint list. The data for one column (Unit) is not stored in the same list that has the data, but in a separate list called SubUnits where the SubUnits are mapped against the Units, with both columns as text. Ideally I want to add an expression to the "Create CSV table" action, that will populate the UNIT column in the CSV:

 

BCBuizer_0-1648115987653.png

3 REPLIES 3
Mira_Ghaly
Dual Super User II
Dual Super User II

@BCBuizer 

Can you please share a sample of your sharepoint list so I can try to replicate at my side?

 

If this post helps you with your problem, please mark your as Accepted solution.If you like my response, please give it a Thumbs Up.

Blog: here
BCBuizer
Super User
Super User

Hi @Mira_Ghaly ,

 

The transaction list (used in the Get Items action):

 

Title (Text) SubUnit (Text) Etc.

Transaction 1

London  
Transaction 2 Paris  

 

The SubUnits list (from which I need the Unit value, based on the value of the SubUnit):

 

Title (Text) Unit (Text) etc.
London UK  
Paris France  
Manchester UK  

 

In PowerApps I would use something like: LookUp(SubUnits,Title=ThisItem.SubUnit).Unit, but I don't know what the Power Automate expression equivalent for this is.

KvB1
Solution Sage
Solution Sage

Only way I would know how to do this is to create a for all loop, within it fetch items from the second list using the subunit field as an odata filter query. 

 

Ofc it would be much nicer to not need a loop, so i hope someone knows a way ^^

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.

May UG Leader Call Carousel 768x460.png

June User Group Leader Call

Join us on June 28 for our monthly User Group leader call!

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.

Power Automate Designer Feedback_carousel.jpg

Help make Flow Design easier

Are you new to designing flows? What is your biggest struggle with Power Automate Designer? Help us make it more user friendly!

Top Solution Authors
Top Kudoed Authors
Users online (1,217)