Thank you for visiting the BlackBerry Support Community Forums.
BlackBerry will be closing the BlackBerry Support Community Forums Device Forums on April 1st (Developers, see below)
BlackBerry remains committed to providing excellent customer support to our customers. We are delighted to direct you to the CrackBerry Forums, a well-established and thorough support channel, for continued BlackBerry support. Please visit http://forums.crackberry.com or http://crackberry.com/ask. You can also continue to visit BlackBerry Support or the BlackBerry Knowledge Base for official support options available for your BlackBerry Smartphone.
"When we launched CrackBerry.com 10 years ago, we set out to make it a fun and useful destination where BlackBerry Smartphone owners could share their excitement and learn to unleash the full potential of their BlackBerry. A decade later, the CrackBerry community is as active and passionate as ever and I know our knowledgeable members and volunteers will be excited to welcome and assist more BlackBerry owners with their questions."
- Kevin Michaluk, Founder, CrackBerry.com
Developers, for more information about the BlackBerry Developer Community please review Join the Conversation on the BlackBerry Developer Community Forums found on Inside BlackBerry.
04-07-2014 04:42 AM
we developed an own ASP.NET-based website for our UserHelpDesk that they can see informations about a users device. To get all BlackBerry10 devices we use the API with the following code:
GetUsersRequest request = new GetUsersRequest();
RequestMetadata metadata = new RequestMetadata();
metadata.clientVersion = ClientVersion;
metadata.locale = Locale;
metadata.organizationUid = OrgUid;
request.metadata = metadata;
GetUsersSearchCriteria searchCriteria = new GetUsersSearchCriteria();
request.searchCriteria = searchCriteria;
request.pageSize = 0;
GetUsersSortBy sortBy = new GetUsersSortBy();
sortBy.EMAIL_ADDRESS = true;
sortBy.value = "EMAIL_ADDRESS";
request.sortBy = sortBy;
GetUsersResponse response = service.getUsers(request);
The problem is now, that only 2000 devices come back as a result set! When we try to change the pageSize to 3000, then an error appears with message "pageSize too large" appears. Is there a possibility to get more than 2000 devices back from the service?
Solved! Go to Solution.
04-07-2014 07:43 AM
The GetUsersRequest call, and most calls in BWS, will paginate the responses to help with efficiency and load of the system. The call has a parameter "lastUserUid" which can be set to denote where the next query should begin, so say you make your call with 2,000 users listed and the last user in that list has an ID of "2000", if you pass that ID into the next GetUsersRequest then the query will begin at the next user ID, ex "2001", and continue from there.