Hierarchy

Properties

Readonly __createdAt

__createdAt: TDatetime

Date and time of creation.

Readonly __createdBy

__createdBy: UserItemRef

Object’s author.

Optional Readonly __deletedAt

__deletedAt: TDatetime

Date and time of deletion.

Readonly __id

__id: string

ID of the object.

__name

__name: TString

Name of the object.

Readonly __updatedAt

__updatedAt: TDatetime

Date and time of change.

Readonly __updatedBy

__updatedBy: UserItemRef

Author of the last change.

absent

absent: TUser

Substituted user.

begin

begin: TDatetime

Substitution start time.

end

Substitution end time.

Readonly isInterrupted

isInterrupted: TBoolean

Interrupted substitution flag.

If the substitution is interrupted, the property evaluates to true.

reassignTasksOnEnd

reassignTasksOnEnd: TBoolean

Reassign tasks when the substitution is finished.

reassignTasksOnStart

reassignTasksOnStart: TBoolean

Reassign active tasks.

replacement

replacement: TUser

Substitute user.

type

Substitution type.

Values from the fields.type.variants object are used for value assignment.
Possible values:

  • information: inform other users about the substitution.
  • reassign: reassign tasks to the substitute.
  • full: grant all access permissions to the substitute.
    const rep =  System.replacements.create();
    rep.data.type = rep.fields.type.variants. information;