ListCases¶
Returns a list of cases on the specified channel.
1 | |
Parameters¶
string channelId optional
The ID of the channel. Optional. If not specified, the search is performed across all channels.
string query optional
A query to execute on the cases.
number start optional
The starting number of the results. The default is 0.
number length optional
The maximum number of results to return. The default is 100.
string columns optional
A comma-separated string of column names to include in the result. If not specified, all columns are returned.
string orderBy optional
The column to order the list results by.
string order optional
The type of ordering for the list results.
Returns¶
An instance of DataTable that contains the case list.
Remarks¶
The query syntax is based on the full-text engine query language. A missing query defaults to open cases (IsClosed:\"false\"). columns is a comma-separated projection, and omitted channelId searches all channels. In the current backend implementation, the orderBy and order arguments are forwarded in reverse order; use the default ordering unless that behavior has been verified for the installed version.
Examples¶
Query: a word in the subject¶
1 | |
Query: a phrase in the subject¶
1 | |
Query: a phrase in the subject and a case number¶
1 | |
Query: cases closed in a date range¶
1 | |
List open cases and cases closed in a period¶
1 2 3 4 5 6 7 8 | |