question

sano-5124 avatar image
0 Votes"
sano-5124 asked ChetanSharmamsft-3456 answered

Testing continuationToken of pagedmembers (Bot Framework REST API) in Microsoft 365 Developer program

Hi.

I'm in Microsoft 365 Developer program and I can have 25 test user licenses.
I'd like to test my code to handle paging of pagedmembers API
However it seems that the API returns continuationToken when there are over 50 users in a conversation.
Because the API treated the page size is 50 even if I set pageSize as small number.

Is there any way to let the API return continuationToken?
Thank you.

office-teams-app-devazure-bot-service
· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi, since this question is related to Microsoft Teams, adding 'office-teams-app-dev' tag for visibility.

0 Votes 0 ·

We are checking if there is any other way to get continuationToken. We will inform you once we get any update

0 Votes 0 ·
ChetanSharmamsft-3456 avatar image
0 Votes"
ChetanSharmamsft-3456 answered

@sano-5124 - If above answer is helpful, could you please accept it for more visibility?

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Prasad-MSFT avatar image
0 Votes"
Prasad-MSFT answered

GetPaginatedMembers API

  1. The API accepts pageSize query parameter:
    -If the pageSize set by developer is <50, Teams API treats it as 50
    -If the pageSize is >500, Teams API will cap it to 500

  2. Teams API will fetch the members with the updated page size from step 1

  3. If the returned member count is less than or equal to the updated page size from #1, there won't be continuation token returned to the bot

In your case, if the team has only 25 users and bot sets the pageSize to 25, our API will adjust it to 50 and fetch the members. Since the returned member count (25) is less than the requested number (50), so there won't be any continuation token returned.
It's by design behavior that the API doesn't return continuation token.



Thanks,

Prasad Das



If the response is helpful, please click "Accept Answer" and upvote it. You can share your feedback via Microsoft Teams Developer Feedback link. Click here to escalate.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.