web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / PARSE JSON GET_ITEM TO...
Power Automate
Unanswered

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard