You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 6 Next »

This server class provides methods that allow to interact with delegation records.

getDelegatesOfType()


This method returns an array of delegates.

Parameter(s):

NameTypeMandatoryDefault Value
typeStringY

N

Possible values:

  • access
  • approvals
  • tasks
  • notifications
delegatorIdStringYN
fromDateTimeSimpleDateTime objectNN
toDateTimeSimpleDateTime objectNN


Returns:

TypeDescription
Array of SimpleRecordsThis method returns an array of delegates.

Example:

getDelegatesOfType()
let simpleDelegation = new SimpleDelegation();
let result = simpleDelegation.getDelegatesOfType('approvals', '166116760014825307');
setResult(result);

getDelegatorsOfType()


This method returns an array of the employees who delegated authority.

Parameter(s):

NameTypeMandatoryDefault Value
typeStringY

N

Possible values:

  • access
  • approvals
  • tasks
  • notifications
delegateIdStringYN
fromDateTimeSimpleDateTime objectNN
toDateTimeSimpleDateTime objectNN

Returns:

TypeDescription
Array of SimpleRecordsThis method returns an array of the employees who delegated their responsibilities.

Example:

getDelegatorsOfType()
let simpleDelegation = new SimpleDelegation();
let result = simpleDelegation.getDelegatorsOfType('tasks', '166116760014825307');
setResult(result);

hasDelegationOfType()


Use this method to verify if there is a specific delegation record. 

Parameter(s):

NameTypeMandatoryDefault Value
typeStringY

N

Possible values:

  • access
  • approvals
  • tasks
  • notifications
delegatorIdsArray of StringsYN
delegateIdStringYN
fromDateTimeSimpleDateTime objectNN
toDateTimeSimpleDateTime objectNN

Returns:

TypeDescription
BooleanThis method returns true if the delegation record with the specified value of the parameters exists. Otherwise, it returns false.

Example:

hasDelegationOfType()
let simpleDelegation = new SimpleDelegation();
let result = simpleDelegation.hasDelegationOfType('access', ['166116760014825307'], '165951644312968191');
setResult(result);

  • No labels