cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
cboy
Level: Powered On

flow returns script from Sharepoint Choice

I want to generate an html email in which the body contains an html table, every one of the columns that are of the 'choice' type return this (they are multi, the rest of the email looks just fine. Is there a way to remove the extra text? just want to keep the values.

[{"@odata.type":"#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference","Id":0,"Value":"NEO"}][{"@odata.type":"#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference","Id":2,"Value":"EHR PHP"},{"@odata.type":"#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference","Id":3,"Value":"EHR SQL"}][{"@odata.type":"#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference","Id":2,"Value":"EHR PHP"},{"@odata.type":"#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference","Id":3,"Value":"EHR SQL"}][{"@odata.type":"#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference","Id":0,"Value":"NEO"},{"@odata.type":"#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference","Id":1,"Value":"NEO SQL"}]

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: flow returns script from Sharepoint Choice

Hi @cboy ,

 

Please try with the following code to get the return results:

concat(first(item()?['Mchoice'])?['value'],';',first(skip(item()?['MChoice'],1))?['value'])

I have configured the flow likes below, and the return results:

1.PNG2.PNG

 

 

Best regards,

Mabel

 

Community Support Team _ Mabel Mao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
Highlighted
jake
Level: Powered On

Re: flow returns script from Sharepoint Choice

Try writing those values to an array variable first, and then using a Split expression on that variable inside the body of your email.

Community Support Team
Community Support Team

Re: flow returns script from Sharepoint Choice

Hi @cboy ,

 

Please try with the following code to get the return results:

concat(first(item()?['Mchoice'])?['value'],';',first(skip(item()?['MChoice'],1))?['value'])

I have configured the flow likes below, and the return results:

1.PNG2.PNG

 

 

Best regards,

Mabel

 

Community Support Team _ Mabel Mao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

cboy
Level: Powered On

Re: flow returns script from Sharepoint Choice

This worked perfectly and as expected, thanks!


@v-yamao-msft wrote:

Hi @cboy ,

 

Please try with the following code to get the return results:

concat(first(item()?['Mchoice'])?['value'],';',first(skip(item()?['MChoice'],1))?['value'])

I have configured the flow likes below, and the return results:

1.PNG2.PNG

 

 

Best regards,

Mabel

 


 

Helpful resources

Announcements
thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

firstImage

Incoming: New and improved badges!

We've given our badges an overhaul and also added some brand new ones!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

Top Kudoed Authors (Last 30 Days)
Users online (6,053)