GetJSON
This function returns the current case data in JSON format. Some more details you can find here: Function GetJSON() – how it works.
Syntax
json=GetJSON();
json=GetJSON("standard");
json=GetJSON("all");
json=GetJSON(parameterNames);
Function arguments
- none or „standard” – (String) for this argument the function returns only technical case data/fields such as CaseTitle, CaseProcedure, CaseStatus, CaseCreated, CaseOwner and CaseIsClosed;
- „all” – (String) for this argument the function returns only the current case data/fields that are on the main case form (without tables);
- parameterNames – (String) [Optional] a list of the case fields (separated with semicolon ’;’) to be returned.
Return value
This function returns String.
Returns the current case data as a string in JSON format.
Examples
Example 1:
Returns the current case technical data in JSON format.
json=GetJSON();
Example 2:
Returns the current case technical data in JSON format.
json=GetJSON("standard");
Example 3:
Returns only the current case data/fields that are on the main case form (without tables).
json=GetJSON("all");
Example 4:
Returns only selected case fields.
json=GetJSON("Some datetime field;Some number field;Some text field");
See also: