Skip to main content

GetCaseStatus

The GetCaseStatus function is supported both in Studio and Search. It returns a string containing the status of the current or previous case. Return values are:

  • Locked - the case is locked
  • Free - the case is available
  • CheckedOut - the case is checked out by the current user
  • CheckedOutByOthers - the case is checked out by another user

Prototype

    GetCaseStatus(PreviousCase)

Arguments

    PraviousCase        String        By value  (Nullable)  

Null (not defined) pr epty string or equal to:

'N' -- work on current case
'Y' -- work on previous case

Returns

    String

The function returns a string containing the case status: Locked, Free, CheckedOut, CheckedOutByOthers

Exception

    Undefined

Undefined is returned if:

- Undefined is returned if the PreviousCase is not empty and not a valid one.
- Undefined is returned if the previous case does not exist.

Example

    GetCaseStatus()