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

Turning on Paging option for HTTP rest calls to flow not working

Hi all,

 

I've got a issue regarding the paging function Microsoft Flow has included in their HTTP action/trigger using a continuation token. I've setup a simple get request to the EventBrite REST API to retrieve a complete list of event attendees for a particular event periodically. I've set the HTTP URL to the below:

Event Brite HTTP Request.png

 

You can see in the JSON value returned that it includes a continuation token which can be used to navigate to the next page.

 

Continuation Token.PNG

 

I then turned on paging.

 

Paging.PNG

 

So I then turned on the paging option on the HTTP action but when I tested the flow it's giving me the following error:

 

Invalid response.PNG

 

I just can't figure out how to get this working on the one flow. I checked the EventBrite API documentation and they noted that to retrieve all attendees for an event. EventBrite returns an array of Attendee objects as a paginated response.

 

How do I get this working with the out of the box paging option available in Flow?

https://www.eventbrite.com/platform/docs/attendees

14 REPLIES 14
rjhale
Advocate IV
Advocate IV

Did you ever get this worked out?  I'm running into the same limitations, and I could really use some help finding a solution. 

 

Thanks. 

Anonymous
Not applicable

I'm getting the same error.....I've got a list of 8,000+ URL's in an Excel file, trying to download each and create a blob in Azure blob storage for each resulting text file. When I ignore pagination and just run it as is, I get the expected 256 results.......when I enable pagination and set the threshold to 8,200, I get the same "invalid paginated response" message. Here is my flow:

 

Flow.PNG

I also have the same issue. Did anyone get around it?

Anonymous
Not applicable

 Hi All, I have this possible solution:

Initilise a Page, PageCount, dataarray and ContinueToken variable, you can call these whatever you choose. Set the Page to 1 and leave the other two blank

1. run the first call to get the number of pages and then parse to JSON, then store the Page_count value into a variable.

2. Create a DO until loop and set to [Page] is greather than [PageCount]

3. Do your HTTP call again and where you would put &continuation=[continuation value] put in the variable for Continue Token, so it should look like: https://www.eventbriteapi.com/v3/organizations/456876091330/events/?token=[token]@{variables('ContinueToken'...

as the variable is empty to start it will get the first page fine. It will grab a continue code as necessary, if there is only 1 page, it will only iterate once anyway.
Then parse again to JSON, and append to the data array variable the fields as you like. You may need to use select and an apply to each.

4. inside the do until and after you have got the pages data, you are going to set the ContinueToken to the current continuation field from the Parse JSON, but you also need to include the property string, so your set variable looks like:

&continuation=@{body('Parse_JSON_2')?['pagination']?['continuation']}. Then increment the Page variable by one. 


This will run a loop that gets the data on the page we have, gets the continuation uri bit and code and then sets the page number to the next one.

I can't add images to this post, but if you need, I can send some screen shots out.

 

@Anonymous Hi, Can you please post the screenshots of the workaround that you mentioned? Currently, I have built a flow which which only first page of the eventbrite attendee result. It would be helpful if you can post the screenshot.

 

Thanks

Venkat

Anonymous
Not applicable

Hi @Venkat_Aus 
Sure, so you start by getting the first page:

Robhcc_0-1610526885707.png

Then you do a do until, counting the pages as you go. The first thing we do is then get the page and parse it

Robhcc_1-1610526982479.png

Then in my case, I was checking the event date to make sure it was after today and iterate through each event on the page

Robhcc_2-1610527055076.png

And adding the row to an array

Then finally I get the new continuation token and "turn" the page by incrementing the page variable, so page 1 becomes page 2 etc.

Robhcc_3-1610527143282.png

At the end of both loops, I will have an array with all the event IDs and their start times. You can get more fields than I did.

Thanks @Anonymous  for the screenshots. I cannot set variable for the continuation token. I can see that token number in the output of the https though. Can you please paste the parse json that you used?

Venkat_Aus_0-1610599217776.png

 

Anonymous
Not applicable

Hello! Please see below Parse JSON schema that I used 

{
    "type": "object",
    "properties": {
        "pagination": {
            "type": "object",
            "properties": {
                "object_count": {
                    "type": "integer"
                },
                "page_number": {
                    "type": "integer"
                },
                "page_size": {
                    "type": "integer"
                },
                "page_count": {
                    "type": "integer"
                },
                "continuation": {
                    "type": "string"
                },
                "has_more_items": {
                    "type": "boolean"
                }
            }
        },
        "events": {
            "type": "array",
            "items": {
                "type": "object",
                "properties": {
                    "name": {
                        "type": "object",
                        "properties": {
                            "text": {
                                "type": "string"
                            },
                            "html": {
                                "type": "string"
                            }
                        }
                    },
                    "id": {
                        "type": "string"
                    },
                    "url": {
                        "type": "string"
                    },
                    "start": {
                        "type": "object",
                        "properties": {
                            "timezone": {
                                "type": "string"
                            },
                            "local": {
                                "type": "string"
                            },
                            "utc": {
                                "type": "string"
                            }
                        }
                    },
                    "organization_id": {
                        "type": "string"
                    },
                    "created": {
                        "type": "string"
                    },
                    "changed": {
                        "type": "string"
                    },
                    "resource_uri": {
                        "type": "string"
                    },
                    "capacity": {
                        "type": "integer"
                    },
                    "status": {
                        "type": "string"
                    }
                },
                "required": [
                    "name",
                    "id",
                    "url",
                    "start",
                    "organization_id",
                    "created",
                    "changed",
                    "resource_uri"
                ]
            }
        }
    }
}

you should see the continuation field in the pagination section.

Thanks @Anonymous . 

 

I used the following approach to make it work. Got the page count, then looped http based on page number and parsed the data. Your approach on this one helped me to achieve the desired result. Thanks 🙂

 

I used https://www.eventbriteapi.com/v3/events/XXXXXXXXX/attendees/?token=XXXXXXXXXXX&page=0

Hey @Mick282 @Venkat_Aus @Anonymous @LeeJBS 

Could somebody help me understand how I can get this communication token in the response of the HTTP connector?

 

Also what Token are you adding into the URI? Is it the Authentication Token?

 

I have been trying to research this but keep coming up short.

Any help would be much appreciated.

 

Thanks

 

Venkat_Aus
Frequent Visitor

@Automate123 

1. Log in to your eventbrite account.

2.  Then access https://www.eventbrite.com.au/platform/

3. You will get a private token for your account. This token is specific to your eventbrite account. 

APItoken.png

 

Replace the Entertoken using the token that you obtained in the previous step.

https://www.eventbriteapi.com/v3/events/EntereventID/attendees/?token=Entertoken

 

Then replace the EntereventID with the eventbrite event id. 

 

I hope this helps.

 

 

Hi @Venkat_Aus 

 

Thank you for the response!

Ok it makes a lot more sense now. So I assume this token is specific to event bride.

I am trying to get more than 100 results using the JIRA REST API, and through reading through this thread thought maybe it would be possible through pagination.

 

Do you have any ideas on how I can achieve this? or how to get a Token specific to Jira?

 

Thank you

Venkat_Aus
Frequent Visitor

@Automate123  There are a few ways to pull multiple records. My research initially suggested continuation token. I tried and failed because I might not be using it correctly. So I took an alternative approach. When you look at the attendee information on the API end and when there are more record numbers, then they will be displayed on the next page.  E.g. "https://www.eventbriteapi.com/v3/events/XXXXXXXXX/attendees/?token=XXXXXXXXXXX&page=2"

 

So I initially got the number of pages and performed a Do until on the http until the page numbers matches the maximum. I hope this helps. 

 

http.JPG

 

Cheers

Venkat

Hey @Venkat_Aus 

Thank you very much for the reply. It defiantly helps in understanding the logic used to get all issues. The flow I created is  utilizing the Jira REST API and so my URI is something like:

https://<My_Org>.atlassian.net/rest/api/3/search?jql=<MYJQL>&maxResults=500

 

However I notice in your URI used, you have a token embedded. Would the logic you use still work for my flow do you think?

 

In terms of the JSON response from the call I get the following:

 

{
"expand": "schema,names",
"startAt": 0,
"maxResults": 100,
"total": 142,
"issues": [{ 

 

The Issues are then filtered using Select, placed in a CSV file and placed onto a mailing list. However I am only ever getting back 100 Jira Issues.

 

Could I ask you to post your full flow with each connector configuration, so I could try and apply the logic you have used to my flow?

 

It really would be appreciated. I am very new to using Power Automate and Iv been trying to figure this out for weeks now. I haven't been able to find much on it, apart from this thread.

 

For reference the flow that I am trying to paginate can be seen below. It is extracting 100 Jira issue and successfully emailing these issues, however I need to extract all 142 issues.

 

Automate123_0-1619772367049.png

 

Cheers

Helpful resources

Announcements

Community will be READ ONLY July 16th, 5p PDT -July 22nd

Dear Community Members,   We'd like to let you know of an upcoming change to the community platform: starting July 16th, the platform will transition to a READ ONLY mode until July 22nd.   During this period, members will not be able to Kudo, Comment, or Reply to any posts.   On July 22nd, please be on the lookout for a message sent to the email address registered on your community profile. This email is crucial as it will contain your unique code and link to register for the new platform encompassing all of the communities.   What to Expect in the New Community: A more unified experience where all products, including Power Apps, Power Automate, Copilot Studio, and Power Pages, will be accessible from one community.Community Blogs that you can syndicate and link to for automatic updates. We appreciate your understanding and cooperation during this transition. Stay tuned for the exciting new features and a seamless community experience ahead!

Summer of Solutions | Week 4 Results | Winners will be posted on July 24th

We are excited to announce the Summer of Solutions Challenge!    This challenge is kicking off on Monday, June 17th and will run for (4) weeks.  The challenge is open to all Power Platform (Power Apps, Power Automate, Copilot Studio & Power Pages) community members. We invite you to participate in a quest to provide solutions to as many questions as you can. Answers can be provided in all the communities.    Entry Period: This Challenge will consist of four weekly Entry Periods as follows (each an “Entry Period”)   - 12:00 a.m. PT on June 17, 2024 – 11:59 p.m. PT on June 23, 2024 - 12:00 a.m. PT on June 24, 2024 – 11:59 p.m. PT on June 30, 2024 - 12:00 a.m. PT on July 1, 2024 – 11:59 p.m. PT on July 7, 2024 - 12:00 a.m. PT on July 8, 2024 – 11:59 p.m. PT on July 14, 2024   Entries will be eligible for the Entry Period in which they are received and will not carryover to subsequent weekly entry periods.  You must enter into each weekly Entry Period separately.   How to Enter: We invite you to participate in a quest to provide "Accepted Solutions" to as many questions as you can. Answers can be provided in all the communities. Users must provide a solution which can be an “Accepted Solution” in the Forums in all of the communities and there are no limits to the number of “Accepted Solutions” that a member can provide for entries in this challenge, but each entry must be substantially unique and different.    Winner Selection and Prizes: At the end of each week, we will list the top ten (10) Community users which will consist of: 5 Community Members & 5 Super Users and they will advance to the final drawing. We will post each week in the News & Announcements the top 10 Solution providers.  At the end of the challenge, we will add all of the top 10 weekly names and enter them into a random drawing.  Then we will randomly select ten (10) winners (5 Community Members & 5 Super Users) from among all eligible entrants received across all weekly Entry Periods to receive the prize listed below. If a winner declines, we will draw again at random for the next winner.  A user will only be able to win once overall. If they are drawn multiple times, another user will be drawn at random.  Individuals will be contacted before the announcement with the opportunity to claim or deny the prize.  Once all of the winners have been notified, we will post in the News & Announcements of each community with the list of winners.   Each winner will receive one (1) Pass to the Power Platform Conference in Las Vegas, Sep. 18-20, 2024 ($1800 value). NOTE: Prize is for conference attendance only and any other costs such as airfare, lodging, transportation, and food are the sole responsibility of the winner. Tickets are not transferable to any other party or to next year’s event.   ** PLEASE SEE THE ATTACHED RULES for this CHALLENGE**   Week 1 Results: Congratulations to the Week 1 qualifiers, you are being entered in the random drawing that will take place at the end of the challenge.   Community MembersNumber SolutionsSuper UsersNumber Solutions Deenuji 9 @NathanAlvares24  17 @Anil_g  7 @ManishSolanki  13 @eetuRobo  5 @David_MA  10 @VishnuReddy1997  5 @SpongYe  9JhonatanOB19932 (tie) @Nived_Nambiar  8 @maltie  2 (tie)   @PA-Noob  2 (tie)   @LukeMcG  2 (tie)   @tgut03  2 (tie)       Week 2 Results: Congratulations to the Week 2 qualifiers, you are being entered in the random drawing that will take place at the end of the challenge. Week 2: Community MembersSolutionsSuper UsersSolutionsPower Automate  @Deenuji  12@ManishSolanki 19 @Anil_g  10 @NathanAlvares24  17 @VishnuReddy1997  6 @Expiscornovus  10 @Tjan  5 @Nived_Nambiar  10 @eetuRobo  3 @SudeepGhatakNZ 8     Week 3 Results: Congratulations to the Week 3 qualifiers, you are being entered in the random drawing that will take place at the end of the challenge. Week 3:Community MembersSolutionsSuper UsersSolutionsPower Automate Deenuji32ManishSolanki55VishnuReddy199724NathanAlvares2444Anil_g22SudeepGhatakNZ40eetuRobo18Nived_Nambiar28Tjan8David_MA22   Week 4 Results: Congratulations to the Week 4 qualifiers, you are being entered in the random drawing that will take place at the end of the challenge. Week 4:Community MembersSolutionsSuper UsersSolutionsPower Automate Deenuji11FLMike31Sayan11ManishSolanki16VishnuReddy199710creativeopinion14Akshansh-Sharma3SudeepGhatakNZ7claudiovc2CFernandes5 misc2Nived_Nambiar5 Usernametwice232rzaneti5 eetuRobo2   Anil_g2   SharonS2  

Check Out | 2024 Release Wave 2 Plans for Microsoft Dynamics 365 and Microsoft Power Platform

On July 16, 2024, we published the 2024 release wave 2 plans for Microsoft Dynamics 365 and Microsoft Power Platform. These plans are a compilation of the new capabilities planned to be released between October 2024 to March 2025. This release introduces a wealth of new features designed to enhance customer understanding and improve overall user experience, showcasing our dedication to driving digital transformation for our customers and partners.    The upcoming wave is centered around utilizing advanced AI and Microsoft Copilot technologies to enhance user productivity and streamline operations across diverse business applications. These enhancements include intelligent automation, AI-powered insights, and immersive user experiences that are designed to break down barriers between data, insights, and individuals. Watch a summary of the release highlights.    Discover the latest features that empower organizations to operate more efficiently and adaptively. From AI-driven sales insights and customer service enhancements to predictive analytics in supply chain management and autonomous financial processes, the new capabilities enable businesses to proactively address challenges and capitalize on opportunities.    

Updates to Transitions in the Power Platform Communities

We're embarking on a journey to enhance your experience by transitioning to a new community platform. Our team has been diligently working to create a fresh community site, leveraging the very Dynamics 365 and Power Platform tools our community advocates for.  We started this journey with transitioning Copilot Studio forums and blogs in June. The move marks the beginning of a new chapter, and we're eager for you to be a part of it. The rest of the Power Platform product sites will be moving over this summer.   Stay tuned for more updates as we get closer to the launch. We can't wait to welcome you to our new community space, designed with you in mind. Let's connect, learn, and grow together.   Here's to new beginnings and endless possibilities!   If you have any questions, observations or concerns throughout this process please go to https://aka.ms/PPCommSupport.   To stay up to date on the latest details of this migration and other important Community updates subscribe to our News and Announcements forums: Copilot Studio, Power Apps, Power Automate, Power Pages

Users online (724)