CaseStatusId
This function returns id of the current case status or specified status.
CaseStatusId([statusName]);Function arguments
Dział zatytułowany „Function arguments”- statusName – (String) [Optional] Name of the status to get id
Return value
Dział zatytułowany „Return value”This function returns String. Returns id of the given status or an empty string if non set or found.
Examples
Dział zatytułowany „Examples”Example 1: Get the current status id of the current case and store it in ’currentStatusId’ variable.
currentStatusId = CaseStatusId();Example 2: Find cases in the current procedure that are in „Accounting” status (function FindCase can search only by status id).
acc=FindCase("","CaseStatusId",CaseStatusId("Accounting"))