How is next page token time calculated when we get no data in the response ?

Anonymous
Not applicable

How is next page token time calculated when we get no data in the response ?

While pulling Lead Activities , we have made intialLoadStartDate as +1 .As per our understanding , there will be no lead activities which will be pulled in subsequent calls since page token will always be ahead in time.

We have observed that lead activities doesnt get pulled for that day but for subsequent days it pulls leadactivites for that day.

What happens when we pull lead activities and we dont get any data , will the next page token have same date value ?

3 REPLIES 3
SanfordWhiteman
Level 10 - Community Moderator

Re: How is next page token time calculated when we get no data in the response ?

I don't understand the question fully, but it sounds like you're asking if a given ​nextPageToken​ will change its cursor position over time. It will not. This is why, for example, you can get moreResults:true ​but no current data.

Anonymous
Not applicable

Re: How is next page token time calculated when we get no data in the response ?

Does this mean if while pulling we are not getting any data , next page token remains at same position in time as previous token?

Scenario :

If I try to pull data for future 100 days by moving token ahead. Will it not pull any data till 99 days and start pulling from 100th day ?

SanfordWhiteman
Level 10 - Community Moderator

Re: How is next page token time calculated when we get no data in the response ?

If I try to pull data for future 100 days by moving token ahead. Will it not pull any data till 99 days and start pulling from 100th day ?

If you want to pull data for a later period, you don't "move the token ahead," you request a new paging token.

You can't manually move the token ahead by days. I don't even know what this would mean.