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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Get value from lookup ...
Power Automate
Unanswered

Get value from lookup column in sharepoint into CSV file

(1) ShareShare
ReportReport
Posted on by 163

Hi,

 

I have a flow that Creates a CSV file, however within that file it pulls data from a lookup column in SharePoint called GI_TechObj_Application. When I then open the excel file that data comes through like this:

[{"Id":5197,"Value":"A Cloud Guru"},{"Id":4689,"Value":"MXR has changed"},{"Id":5249,"Value":"Zenith"}]

 

However I only need the data after Value, for example A Cloud Guru, MXR has changed, Zenith.

 

Here is my flow:

lalford09_0-1720442788360.png

 

I was using item?['GI_TechObj_Application'] to get the value into the Create CSV table.

 

Any help would be appreciated.

Categories:
I have the same question (0)
  • lbendlin Profile Picture
    8,703 Super User 2026 Season 1 on at

     That column comes over as an array of values. You need to specify how you want to delimit the values without interfering with the CSV field delimiter.

  • SudeepGhatakNZ Profile Picture
    14,396 Most Valuable Professional on at

    @lalford09 

    I have attached a sample flow.

     

    This flow retrieves items from a SharePoint list and creates an HTML table with the retrieved data.

    The Manager and Pricing fields are People and Lookup column respectively.

    SudeepGhatakNZ_0-1720488607743.png

     

    It loops through each item, extracts the "Title" and "Manager" fields, and concatenates the values from the "Pricing" field into a string. Finally, it creates an HTML table using the extracted data. You could swap it with a CSV action.

     

    SudeepGhatakNZ_1-1720488752388.png

     

    SudeepGhatakNZ_2-1720488822896.png

     

    SudeepGhatakNZ_3-1720488871881.png

     

    SudeepGhatakNZ_5-1720488929729.png

     

    Output:

     

    SudeepGhatakNZ_6-1720488969759.png

     

     

     

  • lalford09 Profile Picture
    163 on at

    @SudeepGhatakNZ Thanks for your reply, but how can I change your flow so that I'm not using a Get Items, as it get all my items from the app itself on the click of a button like so:

    ForAll(col_All,
        Collect(col_AllExport,
            {
                Title: ThisRecord.Title,
                ID: ThisRecord.ID,
                Created: ThisRecord.Created,
                'Created By': ThisRecord.'Created By'.Email,
                Modified: ThisRecord.Modified,
                LookupCol: ThisRecord.LookupCol
    }));
    Set(varCSVFile, Export.Run(JSON(col_AllExport, JSONFormat.IncludeBinaryData & JSONFormat.IgnoreUnsupportedTypes)).filelink);
     
    So it gets the data from a collection, passes that into the flow, runs the flow and then passes the file back into the app.
     

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 1,027

#2
Valantis Profile Picture

Valantis 809

#3
Haque Profile Picture

Haque 645

Last 30 days Overall leaderboard