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 / Help Getting value fro...
Power Automate
Unanswered

Help Getting value from object

(0) ShareShare
ReportReport
Posted on by 24

I'm trying to build a flow which will get value from a choice field of multiple choices. 
When the choice field gets returned it seems to be coming as an object(?)

zwagsz_0-1697785616592.png

 



Scenario: "When a file or item is modified > Get the Choice columns values, tehre could be up to 40 choices here. 

My issue is that I can get the values but I CANNOT REACH and or Interact with the VALUE in the Object.

The value comes out like this: 

[
  {
    "@odata.type": "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference",
    "Id": 1,
    "Value": "ACO"
  },
  {
    "@odata.type": "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference",
    "Id": 2,
    "Value": "ADE"
  },
  {
    "@odata.type": "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference",
    "Id": 4,
    "Value": "ANI"
  },
  {
    "@odata.type": "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference",
    "Id": 5,
    "Value": "BAL"
  },
  {
    "@odata.type": "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference",
    "Id": 6,
    "Value": "BOE"
  },
  {
    "@odata.type": "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference",
    "Id": 7,
    "Value": "CAR"
  }
]


I want an APPLY TO EACH scenario where  I get EACH value and can make an operation on that VALUE.

But how do I get that VALUE but how do I do this in powerautomate? 

Categories:
I have the same question (0)
  • BCBuizer Profile Picture
    22,654 Super User 2026 Season 1 on at

    Hi @zwagsz ,

     

    Selecting the Value after selecting the 'Vessel Choice' column should return an array with object values: 

    @{triggerBody()?['VesselChoice/Value']}

     

    If this doesn't work, please share the expression you are currently using to retrieve the objects for modification?

  • zwagsz Profile Picture
    24 on at

    Hi, @BCBuizer 

    Ok so this is the way I found it: 

    zwagsz_0-1697786148956.png

     

    But I want to get a hold of that specific VALUE. 
    When you say Select do you mean something like this? 

    zwagsz_1-1697786224498.png

     

  • BCBuizer Profile Picture
    22,654 Super User 2026 Season 1 on at

    Hi @zwagsz ,

     

    Selecting can be done with an action or in an expression. What I suggested was an expression, but this is my next try:

    @{triggerOutputs()?['body/VesselChoice']?['Value']}

     This can be used in the Compose action to view the outcomes.

  • zwagsz Profile Picture
    24 on at

    Hi @BCBuizer  

    Ok I tried that but I get the expression is invalid

    zwagsz_1-1697788067892.png

    Any idea on formatting and or how to write this? 


    @{triggerOutputs()?['body/VesselChoice']?['Value']}

     

  • zwagsz Profile Picture
    24 on at

    Hi @BCBuizer 

    I did some more testing. 
    here i build a new compose, changed the column to Vessel
    I tried to use the following: 

    zwagsz_2-1697788609092.png

    I took the vessel value as in 

    zwagsz_3-1697788648713.png


    In compose 2 
    I choose the following query:

     outputs('Compose_xmasdinner_2')?['body/Vessel']?['Value']


    I get the follwing error: 

    Unable to process template language expressions in action 'Compose_2' inputs at line '0' and column '0': 'The template language expression ' outputs('Compose_xmasdinner_2')?['body/Vessel']?['Value']' cannot be evaluated because property 'body/Vessel' cannot be selected. Array elements can only be selected using an integer index. Please see https://aka.ms/logicexpressions for usage details.'.

  • zwagsz Profile Picture
    24 on at

    Hi @BCBuizer 

    I found a way to go "deeper" in the array and filter it, but HOW can i get ONLY the value? 

    zwagsz_0-1697793390684.png

    Compose xmasdinner gives: 

    [
      {
        "@odata.type""#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference",
        "Id"3,
        "Value""AID"
      },
    The select gives: 
    [
      {
        "Name of ent ""AID"
      },

    HOW can I get ONLY And I mean ONLY the Value of the Key Name of ent? 
    I want the AID here.

    Any ideas? 
  • BCBuizer Profile Picture
    22,654 Super User 2026 Season 1 on at

    Hi @zwagsz ,

     

    Looking at this topic, a loop should be used: https://powerusers.microsoft.com/t5/General-Power-Automate/Return-values-of-multi-choice-Sharepoint-field-in-an-email/td-p/620435

     

    In the topic the loop is used to add the values to a string, but of course you can also use an array variable and append the values to that.

  • grantjenkins Profile Picture
    11,063 Moderator on at

    The easiest way to do this is to use a Select and extract out each of the choice values into a simple array that you can pass into your Apply to each.

     

    Note that I've changed the Select to use Map mode so we end up with a simple array of values (not an array of objects). Select in my case uses the fields Vessel Choice for From, and Vessel Choice Value for Map.

     

    grantjenkins_3-1697955632749.png

     

    Below is what I get as output of the Select.

    grantjenkins_4-1697955823746.png

     

    And the Apply to each in this example would output each of the choices in the Select.

    grantjenkins_5-1697955871422.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

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
Vish WR Profile Picture

Vish WR 873

#2
Valantis Profile Picture

Valantis 813

#3
Haque Profile Picture

Haque 526

Last 30 days Overall leaderboard