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.
var accountsService =
new dundas.account.AccountService();
var someAccounts =
accountsService.queryAccounts(0, 0)
someAccounts.done(
function (accounts) {
});