Przejdź do głównej zawartości

IsDeputyOf

Checks if user specified in first parameter is deputy for user specified in second parameter

IsDeputyOf("deputy","deputyFor");
  • deputy – (String) Login of the user to be checked as deputy
  • deputyFor – (String) Login of the user that first user is deputy of

This function returns Boolean. Returns true if user specified in first parameter is deputy of user specified in second

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]);