This API function is available for Application Workspace 3.5 and later.
The Liquit.Contexts.List function returns all contexts that are available to the user.
Return parameters
The following properties are available:
Name | Description | Value |
---|---|---|
id | The GUID of the context | <guid> |
name | The friendly name of the context | <string> |
primary | Only one context will be primary; this is used for filtering in the Application Workspace. | <boolean> |
priority | This number indicates which context is more important, the lower the number the higher the priority (e.g. 0 is more important than 2). | <number> |
Example
Liquit.Contexts.List(function (fault, result) {
// Check if the request failed.
if (fault != null) {
alert('Error ' + fault.code + ': ' + fault.message);
return;
}
// The result object will contain an array of all contexts
console.log(result);
});