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 : fSOil1q3dyv2ft95Z5jHiu
Power Automate - Building Flows
Answered

Retrieve the value from "[{"@odata.type":"#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference","Id":5,"Value":"Reporting"}]"

Like (1) ShareShare
ReportReport
Posted on 17 Jul 2019 10:10:07 by

Hi All,

 

I'm trying to create a flow that runs every Monday at 10am. This flow, gets the items from a SharePoint list, filters it to Status = Open and then, I would like to send the results by email.

 

This is the chain of actions I've been using:

1 - Reccurrence: runs every Monday at 10am

2 - Get items: go to the list, filter it to Status = Open

3 - Create HTML Table: this is where things go wrong, I then receive the email, but the fields I chose come as "[{"@odata.type":"#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference","Id":5,"Value":"Reporting"}]" and I just want to select the actual "Value". I've tried using the expression item()?['Service']?['Value'] but Flow doesn't recognize it

4 - Send HTML by email

 

Can you help me out please?

 

Kind Regar

  • WHSBPjM Profile Picture
    59 on 30 Jan 2024 at 22:36:42
    Re: Retrieve the value from "[{"@odata.type":"#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference","Id":5,"Value":"Reporting"}]"

    Thanks @Ahemed, your expression was the perfect solution to my needs. Helped as soon as I plugged it in.

  • kz88 Profile Picture
    6 on 27 Oct 2023 at 00:49:06
    Re: Retrieve the value from "[{"@odata.type":"#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference","Id":5,"Value":"Reporting"}]"

    Hello, can you help me understand how where to use/write item()?['Service']?['Value'] ?

    I have a simple flow to get data from SharePoint List, put it into a csv table format, and save it into a csv file. 

    Everything works great except for one field, which is an array/multi-select field that allows the user to select more than 1 of the choices. 


    When this field gets saved into csv file, I only want to have the value, but there's a string of information that comes attached to the value:

    [{"@odata.type":"#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference","Id":2,"Value":"ProductB"},{"@odata.type":"#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference","Id":0,"Value":"ProductZ"}]

    flow.png

  • Ahemed Profile Picture
    21 on 28 Mar 2023 at 10:26:07
    Re: Retrieve the value from "[{"@odata.type":"#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference","Id":5,"Value":"Reporting"}]"

    Add this expression into power automate and replace your column name (internal name)

    Expression

    join(xpath(xml(json(concat('{"body":{"value":', item()?['COLUMN NAME'] , '}}'))), '/body/value/Value/text()'), ', ')

  • RamMaddela Profile Picture
    on 18 Aug 2022 at 03:32:39
    Re: Retrieve the value from "[{"@odata.type":"#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference","Id":5,"Value":"Reporting"}]"

    Remove the 0 and it should work

     

     

  • jkb6011 Profile Picture
    122 on 19 Apr 2022 at 13:24:43
    Re: Retrieve the value from "[{"@odata.type":"#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference","Id":5,"Value":"Reporting"}]"

    Unable to process template language expressions in action 'Populate_a_Microsoft_Word_template_2' inputs at line '0' and column '0': 'The template language expression 'item()?['STATE'][0]['Value']' cannot be evaluated because property '0' cannot be selected. Object properties can only be selected by names. Please see https://aka.ms/logicexpressions for usage details.'.

  • NHes Profile Picture
    9 on 12 Jan 2021 at 20:58:49
    Re: Retrieve the value from "[{"@odata.type":"#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference","Id":5,"Value":"Reporting"}]"

    I think you can now simply use the Value type dynamics field vs the Column type only like below:
    MultiChoiceValue.png

  • mode7 Profile Picture
    8 on 20 Nov 2019 at 19:42:06
    Re: Retrieve the value from "[{"@odata.type":"#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference","Id":5,"Value":"Reporting"}]"

    I have a similar problem and I have a question about step 2

     

    2 - Get items: go to the list, filter it to Status = Open

     

    I'am retrieving all the lines in one step and filtering in another.

    Is it possible to use an equivalent odata expression to get only what I need? I want to filter based is an entry inside the object:

     
            "Status": {
            "@odata.type": "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference",
            "Id": 5,
            "Value": "Execute"
            }
     
    I want to do it all in the "get item" step, so I tried it with an odata filter expression like this :
     
             status.value eq 'Execute'
     
    but doing the above fails. Would someone with more knowlege guide me please.
     
  • Verified answer
    v-bacao-msft Profile Picture
    on 18 Jul 2019 at 02:04:19
    Re: Retrieve the value from "[{"@odata.type":"#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference","Id":5,"Value":"Reporting"}]"

    Hi @Anonymous ,

     

    I suspect that this field is allowed to be multiple-selected, so the output of this field is an array.

     

    If you want to use the expression to get the value of this field, you should add array index to get the element, like item()?['Service'][0]['Value'].

     

    If this choice filed is radio option, it is recommended that you could set this field to Radio Buttons, then you could use item()?['Service']?['Value'] directly to get field value.

     

    Best Regards,

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