cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
amitlathia
Frequent Visitor

Flow: get multiple values from sharepoint column for CSV table

I have created a flow using the following options:

Get Items (Sharepoint List)

Fiter Array

Select

Create CSV Table

Send Email.

 

For the select option - I have selected various fields from my sharepoint list including one which is a multiple selection field.

 

The flow works and exports to CSV - however the output for the multi-selct field is a long string which includes the value retrieved i.e

 

[{"@odata.type":"#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference","Id":0,"Value":"Main Hall"},{"@odata.type":"#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference","Id":1,"Value":"Dining Room"},{"@odata.type":"#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference","Id":3,"Value":"Kitchen"}]

 

What I would like is to receive the values seperated by a comma or semi colon to make this more user friendly. for example in the output above it should ideally read: Main Hall; Dining Room; Kitchen

 

Any suggestions as to how I can do this by either manipulating the output string as an additional step in the flow or changing the way I collect the data for this column.

 

Thanks in advance

 

Amit

21 REPLIES 21

Hi All, an extra tip on how to remove the brackets and the double quotes for this amazing solution from Microsoft staff.  You can simply put the xpath expression into a Join data operation with any delimiter such as a comma and space. The output will now be a, b, c  instead of ["a","b","c"]. Hope this helps others!!

Xpath Join Pic 01.png.jpgXpath Join Pic 02.png.jpg

I have a flow that gets items from a Sharepoint list view and outputs the value columns to CSV. One of the columns is a multiple choice lookup column where I want to output all values selected in a list like Project1,Project2, etc. I have followed the example flows here and am unable to get it to output successfully - right now it outputs empty [ ] in that column. I have tried many different solutions posted to the community for the same issue -- outputting multiple values in a singular cell within a CSV -- all with no success.

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.

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 (2,374)