getCount

Purpose

Returns the total number of records in a view (see Working with views for more information about views).

HTTP Method

GET

URL

https://app.infiniteblue.com/rest/api/getCount

URL Parameters

sessionId

The session ID obtained from the body of the response when calling login.

viewId

The original view ID.

filterName

Name of the field to filter the output using the “equals” option (replaces the filter set in the view, if any).

filterValue

Value of the field to filter the output using the "equals" option.

output

Optional parameter specifying the output format, one of: xml (default) or json.

Permissions Required

View permission for the requested object type.

Response

Total number of records in view

Example

Output example in XML:

<resp status="ok">
<count>100</count>
</resp>

Output example in JSON:

{ "count": 100 }