ChangeDeadline

This function sets deadline for case processing for specified user. If case already had deadline set as a result of stage settingsit is overriden for that user only. List of users who are to be notified if deadline is exceeded must be provided. To calculate new deadline, date of case being forwarded to current stage is used as a starting point

Syntax

ChangeDeadline("TimeUnits","TimeUnitsCount","RemindHoursBefore","RemindOnDayAndAfter","EscalateHoursBefore", "EscalateOnDay", "EscalateAfter", "ReminderUser", "EscalateToUsers");

Function arguments

  • TimeUnits – (String) Specifies whether second function parameter should be interpreted as day count or hour count or as date value directly (i.e. from FormField). ALLOWED VALUES: [ hours | days | date ]
  • TimeUnitsCount – (Decimal) Specifies how many units of time are to be added to case forwarded date to calculate new case deadline
  • RemindHoursBefore – (Decimal) Specifies how many hours before the deadline user is to be notified about it
  • RemindOnDayAndAfter – (Boolean) Specifies if user should be reminded about case deadline on the begining of workday when the deadline exceeds and every following day
  • EscalateHoursBefore – (Decimal) Specifies how many hours before users should be notified about case being still not processed
  • EscalateOnDay – (Boolean) Specifies if users should be notified about case deadline on the begining of the workday when the deadline exceeds
  • EscalateAfter – (Boolean) Specifies if users should be notified about case deadline on every day after the deadline exceeded
  • ReminderUser – (String) Specifies which user this deadline applies to
  • EscalateToUsers – (String) Specifies list of users (separated with ’;’) who are to be notified when any of 'Escalate’ settings specify so

Return value

This function returns Boolean.
Returns true if new deadline was set correctly; false otherwise.

Examples

Example 1:
This will set deadline to end of 2 full business days from case forwarded date for user 'userlogin’ and notify managers when specified.

ChangeDeadline("days", 2, 3, true, 1, false, false, "userlogin", "manger1;manager2");

Example 2:
This will set deadline to date specified in [deadline date] form field for user 'userlogin’ and notify managers when specified.

ChangeDeadline("date", [deadline date], 3, true, 1, false, false, "userlogin", "manger1;manager2");
Was this article helpful?
0 out Of 5 Stars
5 Stars 0%
4 Stars 0%
3 Stars 0%
2 Stars 0%
1 Stars 0%
How can we improve this article?
Please submit the reason for your vote so that we can improve the article.