cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Helper III
Helper III

Parsing json without pagination data

Hello,

I want to save the results of HTTP API call into SQL table

In the results there is pagination data: page_count, etc. that I don't need to save.

How do I parse ONLY what is inside "users" array below?

{
    "page_count": 1,
    "page_number": 1,
    "page_size": 30,
    "total_records": 1,
    "users": [
        {
            "id": "aaaaaaaaaaaaaaa",
            "first_name": "Mike",
            "last_name": "Mike",
            "email": "mike@mike.com",
            "type": 2,
            "pmi": 1111111,
            "timezone": "Asia/Jerusalem",
            "verified": 0,
            "dept": "",
            "created_at": "2020-04-07T16:02:18Z",
            "last_login_time": "2020-09-26T08:49:51Z",
            "last_client_version": "5.3.52640.0920(android)",
            "pic_url": "",
            "language": "",
            "phone_number": "+555 555555555",
            "status": "active"
        },
        {
            "id": "bbbbbbbbbbbb",
            "first_name": "Sam",
            "last_name": "Sam",
            "email": "sam@sam.com",
            "type": 2,
            "pmi": 2222222,
            "timezone": "Asia/Jerusalem",
            "verified": 0,
            "dept": "",
            "created_at": "2020-04-07T17:02:18Z",
            "last_login_time": "2020-09-25T08:49:51Z",
            "last_client_version": "5.3.52640.0920(android)",
            "pic_url": "",
            "language": "",
            "phone_number": "+555 77777777",
            "status": "active"
        }
    ]
}

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Dual Super User III
Dual Super User III

Do a Parse Json step on the full result and then do a Select Action on "Users".  That will let you select the fields you want to grab out of the User's Array to add to another Array.  Or just use the "Users" dynamic content since that is the jSON you want.

image.png



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

View solution in original post

2 REPLIES 2
Dual Super User III
Dual Super User III

Do a Parse Json step on the full result and then do a Select Action on "Users".  That will let you select the fields you want to grab out of the User's Array to add to another Array.  Or just use the "Users" dynamic content since that is the jSON you want.

image.png



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

View solution in original post

Excellent!

Thank you, @Pstork1 

Helpful resources

Announcements
New Super Users

Meet the Power Automate Super Users!

Many congratulations to the Season 1 2021 Flownaut Crew!

New Badges

New Solution Badges!

Check out our new profile badges recognizing authored solutions!

MPA Community Blog

Power Automate Community Blog

Check out the community blog page where you can find valuable learning material from community and product team members!

Users online (49,083)