Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Using Flows
Answered

PARSE JSON GET_ITEM TO USE INDIVIDUALLY

(0) ShareShare
ReportReport
Posted on by 113

Hi there,

In the image below is a GET ITEMS action that is retrieving 2 ROWS from a sharepoint list.

getitem.PNG

I need to extract each value of the 2 ROWS to create a SINGLE ROW like this

Captura.PNG

I though I had done it(pic below) but the schema failed, since I added manually a "2" to the second row column headers.

Capturadd.PNG

 

Any suggestion? thanks in advance!!

  • ALFRED05 Profile Picture
    113 on at
    Re: PARSE JSON GET_ITEM TO USE INDIVIDUALLY

    never mind, I found it!

     

    body('Get_items_2')?['Value']?[0]?['DESCRIPTION']
     
    thanks!
  • ALFRED05 Profile Picture
    113 on at
    Re: PARSE JSON GET_ITEM TO USE INDIVIDUALLY

    thanks @efialttes! , that sound it will work. what if I have more than 2 items?

  • Verified answer
    efialttes Profile Picture
    14,756 on at
    Re: PARSE JSON GET_ITEM TO USE INDIVIDUALLY

    Hi!

    I would use the following WDL expressions

    first(body('Get_items')?['value'])

    last(body('Get_items')?['value'])

    First expression provides acces to your first item from 'Get items' output

    Second expression provides acces to your last item from 'Get items' output

     

     

    So if you need to show AMONT field value from item#1:

    first(body('Get_items')?['value'])?['AMOUNT']

    Same aproach for second item:

    last(body('Get_items')?['value'])?['AMOUNT']

    Hope this helps

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,524 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,906 Most Valuable Professional

Leaderboard

Featured topics

Restore a deleted flow