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 / Export a Sharepoint Li...
Power Automate
Answered

Export a Sharepoint List with Multiple Choice/Person columns into a readable CSV table

(1) ShareShare
ReportReport
Posted on by 9

Hi Team,

 

I have a flow in which:

  1. I get all the items of the list
  2. Have an apply to each loop where I parse all my multiple choice or person columns into a more readable result using the Select + Join actions (e.g., Multiple Choice Owner --> owner 1 email, owner 2 email, owner 3 email)

mmassi_0-1715780137548.png

 

How can I create a CSV table that combines all the columns that I am parsing in the apply to each loop (all the Join actions) appending all the item by item outputs of the for loop? 

My ultimate goal is to extract a ShP list into a CSV where all the complex columns are readable.

 

 

Thank you.

 

Massimiliano

Categories:
I have the same question (0)
  • sandeepstw Profile Picture
    312 Moderator on at

    HI @mmassi ,

     

    This is what you can use - 

    Get items from the SharePoint list.
    Initialize variable CSVData.
    Apply to each item:
    ---Select action to format complex columns.
    ---Join action to concatenate values.
    ---Append parsed values to CSVData.
    Create CSV table from CSVData.
    Create file to save the CSV.

     

    Mark as solution if it helps.

     

    Thanks,

    Sandeep Mishra

  • Verified answer
    mmassi Profile Picture
    9 on at

    Hi @sandeepstw , thanks for your reply. 

    I couldn't make it work with the select+join, maybe because I have complex columns (e.g., multiple choice person) and it needs some nested for each loops.

     

    However, I  could make it work with a simple Create CSV table following the Get Items, with custom columns option and this formula where I need to extract a value from each multiple choice column:

     

    xpath(xml(json(concat('{"root":{"choices":',item()?['MultipleChoiceColumn'],'}}'))),'/root/choices/Value/text()')
    xpath(xml(json(concat('{"root":{"choices":',item()?['MultipleChoicePersonColumn'],'}}'))),'/root/choices/Email/text()')
     
    Thank you.

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 525 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 324 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard