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 / PARSE JSON GET_ITEM TO...
Power Automate
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!!

Categories:
I have the same question (0)
  • Verified answer
    efialttes Profile Picture
    14,756 on at

    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

  • ALFRED05 Profile Picture
    113 on at

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

  • ALFRED05 Profile Picture
    113 on at

    never mind, I found it!

     

    body('Get_items_2')?['Value']?[0]?['DESCRIPTION']
     
    thanks!

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 April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 784

#2
Valantis Profile Picture

Valantis 581

#3
Haque Profile Picture

Haque 545

Last 30 days Overall leaderboard