Use this flow logic to give your users time to act during automated processes or to wait for a specific date and time to complete actions.

Inputs

Outputs

Output Description
Duration Total time that the flow ran in milliseconds. You can drag this data pill into the duration fields.
Date/time Date/time that the flow completed. You can drag this data pill into the date/time fields.

Example: Close an incident if it has been in the resolved state for 10 days

In this example, a flow starts when the incident state changes to Resolved.

Figure 1. Flow trigger
Flow trigger.

Example: Wait 10 days after the last update to a record

In this example, the flows waits for 10 days after the incident record has been resolved.

Figure 2. Wait for Duration flow logic
Wait for Duration flow logic.

Example: Update a record after 10 days

In this example, the flows closes the incident record 10 days after it was resolved.

Figure 3. Action used to close the incident
Action used to close the incident.

Example: Wait for a duration of 50% of the time between the start of the flow logic and the due date

In this example, the flows send a notification email to the relevant manager when a critical problem is created and 50% of the time between the problem record creation and the problem due date has lapsed.

Figure 4. Wait for percentage time duration flow logic
Wait for percentage time duration flow logic.

Relative Duration type

When the duration type is Relative Duration, the flow logic first evaluates the relative date and time, the schedule, and finally, the duration. Schedules, dates, and times set in the past don't affect the wait duration. This table provides examples of how the flow processes the wait duration in these scenarios.

The timer waits for the next instance of a selected schedule. For example, if you set a schedule for Monday through Friday from 8 a.m. to 5 p.m., and the timer is initiated on Saturday, the timer waits until Monday at 8 a.m. before starting.

Execution details

Figure 5. Execution details for Wait for a duration flow logic
Example execution details for a wait for a duration flow.
  1. The header shows the state, start time, and runtime for the flow logic.
    Note: The runtime value in the header only includes the time that it takes to execute the flow logic and doesn't include the wait duration that is specified in the flow.
  2. The Configuration Details section shows details about the variables that are used by the flow, including the type, configuration, and runtime values for each variable.