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 / flow returns script fr...
Power Automate
Answered

flow returns script from Sharepoint Choice

(0) ShareShare
ReportReport
Posted on by 9

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"}]

Categories:
I have the same question (0)
  • jakeMannion Profile Picture
    146 on at

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

  • Verified answer
    v-yamao-msft Profile Picture
    Microsoft Employee on at

    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

     

  • cboy Profile Picture
    9 on at

    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

     


     

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 March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 608

#2
Valantis Profile Picture

Valantis 416

#3
11manish Profile Picture

11manish 348

Last 30 days Overall leaderboard