Configure the due date logic for shift approval flows

task brazil Updated Sep 10, 2026 2 min read configure-time-off-shift-swap-approval-flows.md
Raw file servicenow.com

As an administrator, you can configure the due date logic for the time-off request and shift-swap request approval flows.

Before you begin

Important: Starting with the Brazil release, Workforce Optimization for ITSM is being prepared for future deprecation. It will be hidden and no longer installed on new instances but will continue to be supported. For details, see the Deprecation Process [KB0867184] article in the Now Support Knowledge Base.

Make sure that your application is in the Shift Planning scope.

Role required: admin

About this task

You can configure the flows to restrict who can approve the requests. For example, you can set it to only the manager of the agent's primary assignment group who can approve them. If the agent submits the request for approval within two days before the agent time-off start date, then the request for approval is auto-rejected.

Procedure

  1. Navigate to All > Process Automation > Flow Designer.

    Each flow has a requester and an approver workflow.

  2. Configure the due date logic for the Time-off request flow.

If

Then

Reference image

The requester is one of the managers

The request is auto-approved.

[Omitted image "timeoff-request-autoapprove.png"] Alt text: Time-off request auto-approval

The requester is the agent

Enter the due date to approve the request.1. Open Else > Ask For Approval flow. 2. In the Due Date field, select the down arrow icon ([Omitted image "down-arrow-icon.png"] Alt text: Down arrow icon). 3. In the Due Date script window, update the value in the dueDate.addDaysUTC(-2); parameter to the number of days you want to set the due date for approval. 4. Select Done.

[Omitted image "time-off-ask-approval.png"] Alt text: Time-off ask for approval flow

3. Configure the due date for the Swap request approval flow.

If

Then

Reference image

The shift-swap requester is one of the managers

The request is auto-approved.

[Omitted image "shift-swap-auto-approval.png"] Alt text: Shift-swap auto approval

The shift-swap requester is an agent (Requestee) and the The shift-swap approver is the manager

Enter the due date for the requestee agent to approve.

  1. Open Else > Ask For Approval- Ask for Approval from Requestee Agent flow.

  2. In the Due Date field, select the down arrow icon ([Omitted image "down-arrow-icon.png"] Alt text: Down arrow icon).

  3. In the Due Date script window, updated the value in the dueDate.addDaysUTC(-2); parameter to the number of days you want to set the due date for approval.

  4. Select Done. Enter the due date to approve the request.

  5. Open Ask For Approval - Ask for an approval from Managers and additional managers of both the agents flow.

  6. In the Due Date field, select the down arrow icon ([Omitted image "down-arrow-icon.png"] Alt text: Down arrow icon).

  7. In the Due Date script window, updated the value in the dueDate.addDaysUTC(-2); parameter to the number of days you want to set the due date for approval.

  8. Select Done.

Enter the due date for the requestee agent to approve.[Omitted image "shift-swap-request-approval.png"] Alt text: Shift swap request approval

Enter the due date to approve the request.[Omitted image "swap-request-manager-approval.png"] Alt text: Swap request manager approval

**Parent Topic:**[Setting up Scheduling in Workforce Optimization for ITSM](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/brazil/markdown/it-service-management/workforce-optimization-for-it-service-management/setup-scheduling-configurable-workforce-optimization-itsm.md)

Related topics

Build your first flow in Flow Designer

Search documentation
Search document titles and file paths on the brazil branch