case_set_preference ()
Function prototype | case_set_preference(session, case, parameter, value, [scope = "USER"], [scope_ref]) |
---|---|
API Version | 2.7.20 and higher |
Sets the value of a specific preference of a CASE.
This operation is only allowed if the active session user has privileges to view the profile of the CASE | |
Input parameters: |
|
Output parameters: |
|
Request sample: | case_set_preference ( “LCAAAAAAAAAAAA”, 21253, "MY_PREF", “new value”, "PROGRAM", "323" ); |
Response sample: | <?xml version="1.0" encoding="utf-8" standalone="yes"?>
<result>343</result>
<ErrorMsg></ErrorMsg>
<ErrorCode></ErrorCode>
|
Return Error codes
ERROR CODE | |
---|---|
INVALID_TOKEN | The session token provided is not valid |
INSUFFICIENT_PRIVILEGES | The session user does not have the necessary privileges to modify the preferences of the CASE |
CASE.NOT_FOUND | The specified CASE was not found |