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 / Create CSV table with ...
Power Automate
Unanswered

Create CSV table with Select output, mapping Join value from an array

(0) ShareShare
ReportReport
Posted on by 46

Hi, I need to extract data from a SharePoint list. In a specific column I have more than one value (it's a People field with multiple choice enabled).

I looked through the forum and I understood that the solution is a Join action on the array of the output on the Select action, taking the values for each SharePoint element.

This is the field I am struggling with:

DLLFPP_0-1716543046633.png

 

After getting the array, I can convert the array to a string with the Join action so these three users are reported as a single line of text:

DLLFPP_1-1716543278454.png

 

Now I don't know how to use this result in my next Select action which takes all values from each SharePoint field as a map for the next Create CSV action:

DLLFPP_2-1716543438349.png

As it is now, I cannot get the output from the Join, because it is nested inside the Apply to each section above:

DLLFPP_3-1716543500246.png

 

How can I do this??

Thanks!

 

 

Categories:
  • BCBuizer Profile Picture
    22,899 Super User 2026 Season 2 on at

    Hi @DLLFPP ,

     

    Trying using an array variable: Within the Apply to each loop, after the Join action, insert an Append to array variable action. (For this to work you first need to insert an Initialize variable action at the beginning of the flow.

     

    After the loop has been completed, the array variable will contain a record for each iteration of the loop. The variable can then referenced participants field, although you will still need to join the values in the array. 

  • DLLFPP Profile Picture
    46 on at

    EDIT: Fixed. The initialized variable wasn't an array.

     

    Hi!

    Thanks for your reply first of all!!

    I tried this, but the variable cannot be called from the Append to array variable action, it just doesn't come out from the dropdown menu.

     

    DLLFPP_0-1716551446495.png

     

  • DLLFPP Profile Picture
    46 on at

    Hi @BCBuizer 

    By doing this I get all possible partecipants, summed together, in the partecipants column of the csv.

    It doesn't write the partecipant of that specific item.

     

    DLLFPP_0-1716552534071.png

     

     

    DLLFPP_1-1716552574629.png

     

  • DLLFPP Profile Picture
    46 on at

    Hi @BCBuizer , any change to look into this and give me a hand?

    Thanks

  • BCBuizer Profile Picture
    22,899 Super User 2026 Season 2 on at

    Hi @DLLFPP ,

     

    The only thing that comes to mind now is to change the order of things a little bit an move the Select action inside the loop. Then map the Particpants column to the outputs of the Join action. Finally, add the output of the Select action to the Append to array action:

     

    BCBuizer_0-1716902381122.png

    The variable should then contain all of the data in a structured way so you can use it in other parts of the flow.

  • DLLFPP Profile Picture
    46 on at

    Unfortunately if I move the Select action within the Apply to each, I get an error on the Append to array variable action because the Select output provides an Array and that Append action does not support such input..

  • BCBuizer Profile Picture
    22,899 Super User 2026 Season 2 on at

    Hi @DLLFPP ,

     

    After a little array manipulation I got this to work in a test:

    BCBuizer_1-1717100619704.png

     

  • Chriddle Profile Picture
    8,729 Super User 2026 Season 2 on at

    The shortcut would be like this:

    Chriddle_0-1717163491980.png

    Compose (the simplified JSON response from a Get items action)

    Spoiler (Highlight to read)
    {
     "body": {
     "value": [
     {
     "Title": "test title 0",
     "Contacts": [
     {
     "DisplayName": "Doe, Jim",
     "Email": "jim.doe@example.com"
     },
     {
     "DisplayName": "Doe, Jane",
     "Email": "jane.doe@example.com"
     },
     {
     "DisplayName": "Smith, Robert",
     "Email": "robert.smith@example.com"
     }
     ]
     },
     {
     "Title": "test title 1",
     "Contacts": [
     {
     "DisplayName": "Doe, Jim",
     "Email": "jim.doe@example.com"
     },
     {
     "DisplayName": "Doe, Jane",
     "Email": "jane.doe@example.com"
     },
     {
     "DisplayName": "Smith, Robert",
     "Email": "robert.smith@example.com"
     }
     ]
     }
     ]
     }
    }
    { "body": { "value": [ { "Title": "test title 0", "Contacts": [ { "DisplayName": "Doe, Jim", "Email": "jim.doe@example.com" }, { "DisplayName": "Doe, Jane", "Email": "jane.doe@example.com" }, { "DisplayName": "Smith, Robert", "Email": "robert.smith@example.com" } ] }, { "Title": "test title 1", "Contacts": [ { "DisplayName": "Doe, Jim", "Email": "jim.doe@example.com" }, { "DisplayName": "Doe, Jane", "Email": "jane.doe@example.com" }, { "DisplayName": "Smith, Robert", "Email": "robert.smith@example.com" } ] } ] } }

    Create CSV table

    From

    body('Compose')['value']

    Value "Title"

    item()['Title']

    Value "Contacts"

    join(
    	xpath(
    		xml(json(concat('{"Root":',item(),'}'))),
    		'//Contacts/Email/text()'
    	),
    	';'
    )

    Chriddle_1-1717163706272.png

     

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
11manish Profile Picture

11manish 315 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 267

#3
Henil Profile Picture

Henil 115

Last 30 days Overall leaderboard