IsDeputyOf
Checks if user specified in first parameter is deputy for user specified in second parameter
Syntax
IsDeputyOf("deputy","deputyFor");
Function arguments
- deputy – (String) Login of the user to be checked as deputy
- deputyFor – (String) Login of the user that first user is deputy of
Return value
This function returns Boolean.
Returns true if user specified in first parameter is deputy of user specified in second
Examples
Example 1:
This will return if 'exampleUser’ is deputy of 'SecondExampleUser’ and store return value of function in 'valid’ variable
valid = IsDeputyOf("exampleUser","SecondExampleUser");
Example 2:
This will check if current user is deputy of user specified as Case owner
IsDeputyOf(CurrentUser(),[CaseOwner]);