web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Add associated column ...
Power Automate
Unanswered

Add associated column data to a CSV

(0) ShareShare
ReportReport
Posted on by 22,505 Super User 2025 Season 2

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

Categories:
I have the same question (0)
  • Mira Ghaly Profile Picture
    11,413 Moderator on at

    @BCBuizer 

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

     

  • BCBuizer Profile Picture
    22,505 Super User 2025 Season 2 on at

    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 Profile Picture
    1,596 on at

    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 ^^

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 501 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 323 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard