Open this page in the API Guide

AccountService.queryAccounts Method

Gets the accounts corresponding to query criteria.
 

Parameters

pageNumber

Type: Number
(default=0) The page number. Set to 0 for all pages.
Optional: True
pageSize

Type: Number
(default=150) The number of results in each page.
Optional: True
orderBy

Type: Array
ElementType: OrderBy
(optional) The sort order of the result, or null if the order does not matter.
Optional: True
filter

Type: Array
ElementType: QueryFilterRule
(optional) The filter options for the result, or null if the filtering does not matter.
Optional: True

Return Value


Type: jQuery.Promise
Value: Array
Element Value: Account
A promise object that is resolved when the call is complete. If successful, an array of dundas.account.Account is returned. 

Examples

This sample retrieves all users.

1
2
3
4
5
6
7
8
9
10
11
var accountsService =
     new dundas.account.AccountService();
 
var someAccounts =
     accountsService.queryAccounts(0, 0)
 
someAccounts.done(
     function (accounts) {
 
      });