web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id : WjnXqUhYExHPviMe1X00T/
Power Automate - Building Flows
Answered

Sharepoint multi choice

Like (0) ShareShare
ReportReport
Posted on 16 Nov 2020 02:05:35 by

Hi,

 

I am trying to send an email with a table of a list of items which fall under a certain criteria, however I am having trouble extracting multi choice field values from the list. The sharepoint list field in question is a choice field (multi selection allowed). When I only use the default field dynamic content, it pulls the Azure Sharepoint reference (e.g. [{"@odata.type":"#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference","Id":2,"Value":"Choice"}]

There is no option for dynamic content for only the value of this field. See attached screenshot:

Capture1.PNG

 

Any help would be appreciated, thanks

  • Community Power Platform Member Profile Picture
    on 19 Nov 2020 at 04:57:44
    Re: Sharepoint multi choice

    Awesome, thanks so much 🙂

  • Verified answer
    v-bofeng-msft Profile Picture
    on 19 Nov 2020 at 02:01:51
    Re: Sharepoint multi choice

    Hi @Anonymous :

    Just a little modification:

    1.JPG

    Mark1:

    item()?['Value']

    Mark2:

    null

    Result:

    2.JPG

    Best Regards,

    Bof

  • Community Power Platform Member Profile Picture
    on 18 Nov 2020 at 03:42:29
    Re: Sharepoint multi choice

    Hmmm...thanks, that seems to work, although the output is a bit messy. Any tips on how to get that output into a nice HTML table for email (e.g. without the "Value", brackets, etc)?

     

    Capture2.PNG

  • v-bofeng-msft Profile Picture
    on 18 Nov 2020 at 02:51:50
    Re: Sharepoint multi choice

    Hi @Anonymous :

    I get it. You only need "Value" instead of "@odata.type" and "Id".

    Because "ChoiceColumn" allows mutiple selection, the value of "ChoiceColumn" is an array. To get all the values of the value column, you need to traverse the entire list, and then use the select action to get the "Value" column of the ChoiceColumn.I'v made a test for your reference:

    1.JPG2.JPG

    Reference Formula:

    1\items('Apply_to_each')?['ChoiceColumn']

    2\item()?['Value']

    3\item()?['Title']

    4\variables('choice')

    96.gif

    Best Regards,

    Bof

  • Community Power Platform Member Profile Picture
    on 17 Nov 2020 at 23:09:54
    Re: Sharepoint multi choice

    Thanks, that is the expression I tried, but the output is still this:  [{"@odata.type":"#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference","Id":2,"Value":"Choice"}]

     

  • v-bofeng-msft Profile Picture
    on 17 Nov 2020 at 08:08:28
    Re: Sharepoint multi choice

    Hi @Anonymous :

    If Dynamic content cannot display the parameters you want, you can use ‘Expression’.

    Please try:

    item()?['columnName']

    Best Regards,

    Bof

     

  • Community Power Platform Member Profile Picture
    on 16 Nov 2020 at 23:34:49
    Re: Sharepoint multi choice

    Thanks for the reply, however mine doesn't seem to be working. When using the JSON method, the schema validation fails, and calling the value directly via the formula results in the output with all the Azure reference text.

    Is there a similar formula which can reference the value of the field rather than the field itself? 

  • v-bofeng-msft Profile Picture
    on 16 Nov 2020 at 07:01:23
    Re: Sharepoint multi choice

    Do you want to get the dynamic content form the action ‘Filter array’?

    The Point is using JSON. I’ve made a test for your reference:

    1\My data source

    v-bofeng-msft_0-1605510000312.png

     

    2\My Flow

    v-bofeng-msft_1-1605510000316.png

     

    3\The Result

    v-bofeng-msft_2-1605510000318.png

    n addition, you can also directly call the value through this formula: 

    item()?[‘columnName’]

    Best Regards,

    Bof

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

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 497 Super User 2025 Season 2

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 2

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 2

Loading complete