cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted

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
Highlighted
Dual Super User III
Dual Super User III

Re: Parsing json without pagination data

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
Highlighted
Dual Super User III
Dual Super User III

Re: Parsing json without pagination data

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

Highlighted

Re: Parsing json without pagination data

Excellent!

Thank you, @Pstork1 

Helpful resources

Announcements
Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

Upcoming Events

Experience what’s next for Power Automate

See the latest Power Automate innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Community Conference

Power Platform Community Conference

Find your favorite faces from the community presenting at the Power Platform Community Conference!

Top Solution Authors
Top Kudoed Authors
Users online (5,646)