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

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Retrieve Table data in...
Power Automate
Unanswered

Retrieve Table data into fields

(0) ShareShare
ReportReport
Posted on by
How to get "TotalRecord" from Table1 to store in a variable
{
  "Table1": [
    {
      "Delete_InactiveApplications_Job_Log_ID": 1,
      "RowCreatedDate""2024-01-05T15:54:43.2",
      "RunId"1,
      "TotalRecord"36818,
      "ApprovedDate""2024-01-05T15:54:42",
    },
    {
      "Delete_InactiveApplications_Job_Log_ID"5,
      "RowCreatedDate""2024-01-05T15:53:39.887",
      "RunId"1,
      "TotalRecord"36818,
      "ApprovedDate""2024-01-05T15:53:38",
    }
  ]
}
poerautomate.png
Categories:
I have the same question (0)
  • SudeepGhatakNZ Profile Picture
    14,394 Most Valuable Professional on at

    @mayanksemwal ,

    Your JSON data lacks proper formatting; eliminate the comma following "Approved Date." Subsequently, retrieve the array element—referred to as "Table1" in your instance—and proceed to calculate the array's length.

    SudeepGhatakNZ_0-1704687482435.png

    SudeepGhatakNZ_1-1704687529148.png

     

     

    SudeepGhatakNZ_2-1704687573364.png

     

     

  • S-Venkadesh Profile Picture
    1,214 Super User 2026 Season 1 on at

    Hi @mayanksemwal ,

     

    To illustrate, I've stored your sample JSON in a Compose action and extracted 'TotalRecord' from the first array value using the following expression: outputs('Input_Json')?['Table1'][0]?['TotalRecord'].

    For a more dynamic approach to fetch elements from an array, consider looping through the array with parse JSON as suggested by @SudeepGhatakNZ  and perform the necessary tasks.

    Please refer to the snapshots:

    SVenkadesh_0-1704691140984.pngSVenkadesh_1-1704691230193.png

     

    I hope this information is helpful. If it is, please consider giving a thumbs up.

     

    Best regards,

    Venkadesh Sundaramurthy



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
trice602 Profile Picture

trice602 237 Super User 2026 Season 1

#2
David_MA Profile Picture

David_MA 176 Super User 2026 Season 1

#3
Power Platform 1919 Profile Picture

Power Platform 1919 96 Super User 2026 Season 1

Last 30 days Overall leaderboard