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 / How to get the output ...
Power Automate
Answered

How to get the output body/value from multiple lines

(0) ShareShare
ReportReport
Posted on by

Hi All,

 

I need your help how to get all values of a combi field for a sharepoint list.

 

Example below. I need to get the value of multiple lines. 

Result should be 'Value 1' and 'Value 2'

 

Thx Martin 

 

{
"statusCode": 200,
"headers": {
},
"body":
"Test1": [
{
"@odata.type": "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference",
"Id": 237,
"Value": "Value1"
},
{
"@odata.type": "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference",
"Id": 67,
"Value": "Value2"

Categories:
I have the same question (0)
  • AndreasN Profile Picture
    318 Super User 2024 Season 1 on at

    Hello,

     

    can you please share a screenshot of your flow? This will make it much easier to assist you.

     

    Best regards - AndreasN

  • Scherodan Profile Picture
    on at

    @AndreasN thx for your answer.  Not really know what I should capture from screen as I need a logic to build 🙂

     

    At least I have a get item action - and within the resutl you find the json above. From this in need the values to use this for a reference on another get item action.

     

  • AndreasN Profile Picture
    318 Super User 2024 Season 1 on at

    @Scherodan 

    Okay, there's two different IDs in your JSON so are you extracting two different items, or is it one item with multiple values?

     

    Are you using "Get item" or "Get items"?

  • Scherodan Profile Picture
    on at

    @AndreasN Thx you. 

     

    I use Get item (only one specific) and within this output the json above is coming. So both value sit within one.

     

    Scherodan_0-1696934409246.png

     

     

  • AndreasN Profile Picture
    318 Super User 2024 Season 1 on at

    @Scherodan 

     

    Okay, so you have to loop through both choices if it's a multi choice column. 
    A simple way to do this, is simply to compose your "value" column, with a compose action. This would apply a "for each" loop. Given you want the output to be both values, you can initialize a variable and append the composed value in your apply for each.

    Like so:

    AndreasN_0-1696935457756.png

     

    Your variable will then store the values for you.

  • Scherodan Profile Picture
    on at

    @AndreasN 

     

    now I get both values double 😞

    Scherodan_0-1696936949565.png

     

  • AndreasN Profile Picture
    318 Super User 2024 Season 1 on at

    Can you show me how you've set it up??

    This is how I've done mine:

    AndreasN_0-1696937483635.png

     

    The input for the compose action is my multi choice column called "test value".

  • Scherodan Profile Picture
    on at

    @AndreasN 

     

    It looks like this. The problem seems to be that I have to "xxx.value" column in my list as the column is the result of a lookup column.

     

    Scherodan_0-1696939504063.png

     

  • Verified answer
    AndreasN Profile Picture
    318 Super User 2024 Season 1 on at

    Is your compose 6 action pointing at the specific column or the whole output of your "get item"? 

    The output of your compose 6 looks off, it should not return ID and all the other columns, but only the values of your "value" column from your "get item".

    As you can see mine does:

    AndreasN_0-1696941207198.pngAndreasN_1-1696941245426.png

     

  • Scherodan Profile Picture
    on at

    @AndreasN now I got it. Thx you so much! Much appreciate!

     

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!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 557

#2
Valantis Profile Picture

Valantis 328

#3
David_MA Profile Picture

David_MA 264 Super User 2026 Season 1

Last 30 days Overall leaderboard