Product documentation Docs
    • English
    • Deutsch
    • 日本語
    • 한국어
    • Français
  • More Sites
    • Now Community
    • Developer Site
    • Knowledge Base
    • Product Information
    • ServiceNow.com
    • Training
    • Customer Success Center
    • ServiceNow Support Videos
  • Log in

Product documentation

  • Home
How search works:
  • Punctuation and capital letters are ignored
  • Special characters like underscores (_) are removed
  • Known synonyms are applied
  • The most relevant topics (based on weighting and matching to search terms) are listed first in search results
Topics are ranked in search results by how closely they match your search terms
  • A match on the entire phrase you typed
  • A match on part of the phrase you typed
  • A match on ALL of the terms in the phrase you typed
  • A match on ANY of the terms in the phrase you typed

Note: Matches in titles are always highly ranked.

  • Release version
    Table of Contents
    • Now Platform capabilities
Table of Contents
Choose your release version
    Home Orlando Now Platform Capabilities Now Platform capabilities Flow Designer Flows Flow logic Wait for a duration flow logic

    Wait for a duration flow logic

    • Save as PDF Selected topic Topic & subtopics All topics in contents
    • Unsubscribe Log in to subscribe to topics and get notified when content changes.
    • Share this page

    Wait for a duration flow logic

    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

    Input Description
    Duration Type
    • Explicit Duration: Wait for a specific time period, such as 5 minutes.
    • Relative Duration: Wait for a specific time period from a selected Duration data pill or date/time value, such as 5 minutes after the flow start.
    • Percentage Duration: Type to specify a certain percentage of time duration between the start of the flow logic and specified end time.
      Note: The percentage value must be from 0 through 100 only.
    Wait for Set this value manually or select a Duration data pill from the data pill picker (Data pill picker).
    • Explicit Duration: Wait duration in hours, minutes, and seconds.
    • Relative Duration: Wait duration in hours, minutes, and seconds before or after a specific time. Select Relative Duration to specify a wait duration from a specific date.
      Note: Past dates don't affect the wait duration.
    You can enter a wait value of up to 999 hours.
    Note: The actual wait duration can vary due to the instance processing time. The flow always waits for the time that you specify for this field, but other work in the queue may add to the wait time.
    Wait for Percentage Wait duration as a percentage of the time period between the start of flow logic and specified end time. If you select a past date for the end time, the wait duration is set to 0. This field appears when Percentage Duration is selected from the Duration Type list.
    During the following schedule Select the schedule used to calculate the Scheduled End date/time value from the selected wait duration. For example, waiting for a 10-hour duration as part of an 8-5 weekdays schedule causes the flow to wait for one or more business days. If you leave this field blank, the timer runs without a schedule. For information on creating schedules, see Define a schedule.

    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.

    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.

    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.

    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.

    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.

    Duration Setting Relative Date/Time Schedule Effect
    Set to 0. None None Duration ends immediately.
    Greater than 0. Past date None Duration ends immediately.
    Greater than 0. Future date None Flow waits for the date/time, and then waits for the duration.
    Greater than 0. Past date Future date Flow waits for schedule, and then waits for the duration.
    Greater than 0. Future date Past date Flow waits for the date/time, and then waits for the duration.
    Greater than 0. Future date Future date Flow waits for the future date, then for the schedule, and then for the duration.

    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 1. 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.
    Related concepts
    • If flow logic
    • For Each flow logic
    • Do the following until flow logic
    • Do the following in parallel flow logic
    • Make a decision flow logic
    • Call a workflow flow logic
    • End flow logic
    • Dynamic flows

    Tags:

    Feedback
    On this page

    Previous topic

    Next topic

    • Contact Us
    • Careers
    • Terms of Use
    • Privacy Statement
    • Sitemap
    • © ServiceNow. All rights reserved.

    Release version
    Choose your release version

      Wait for a duration flow logic

      • Save as PDF Selected topic Topic & subtopics All topics in contents
      • Unsubscribe Log in to subscribe to topics and get notified when content changes.
      • Share this page

      Wait for a duration flow logic

      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

      Input Description
      Duration Type
      • Explicit Duration: Wait for a specific time period, such as 5 minutes.
      • Relative Duration: Wait for a specific time period from a selected Duration data pill or date/time value, such as 5 minutes after the flow start.
      • Percentage Duration: Type to specify a certain percentage of time duration between the start of the flow logic and specified end time.
        Note: The percentage value must be from 0 through 100 only.
      Wait for Set this value manually or select a Duration data pill from the data pill picker (Data pill picker).
      • Explicit Duration: Wait duration in hours, minutes, and seconds.
      • Relative Duration: Wait duration in hours, minutes, and seconds before or after a specific time. Select Relative Duration to specify a wait duration from a specific date.
        Note: Past dates don't affect the wait duration.
      You can enter a wait value of up to 999 hours.
      Note: The actual wait duration can vary due to the instance processing time. The flow always waits for the time that you specify for this field, but other work in the queue may add to the wait time.
      Wait for Percentage Wait duration as a percentage of the time period between the start of flow logic and specified end time. If you select a past date for the end time, the wait duration is set to 0. This field appears when Percentage Duration is selected from the Duration Type list.
      During the following schedule Select the schedule used to calculate the Scheduled End date/time value from the selected wait duration. For example, waiting for a 10-hour duration as part of an 8-5 weekdays schedule causes the flow to wait for one or more business days. If you leave this field blank, the timer runs without a schedule. For information on creating schedules, see Define a schedule.

      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.

      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.

      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.

      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.

      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.

      Duration Setting Relative Date/Time Schedule Effect
      Set to 0. None None Duration ends immediately.
      Greater than 0. Past date None Duration ends immediately.
      Greater than 0. Future date None Flow waits for the date/time, and then waits for the duration.
      Greater than 0. Past date Future date Flow waits for schedule, and then waits for the duration.
      Greater than 0. Future date Past date Flow waits for the date/time, and then waits for the duration.
      Greater than 0. Future date Future date Flow waits for the future date, then for the schedule, and then for the duration.

      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 1. 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.
      Related concepts
      • If flow logic
      • For Each flow logic
      • Do the following until flow logic
      • Do the following in parallel flow logic
      • Make a decision flow logic
      • Call a workflow flow logic
      • End flow logic
      • Dynamic flows

      Tags:

      Feedback

          Share this page

          Got it! Feel free to add a comment
          To share your product suggestions, visit the Idea Portal.
          Please let us know how to improve this content

          Check any that apply

          To share your product suggestions, visit the Idea Portal.
          Confirm

          We were unable to find "Coaching" in Jakarta. Would you like to search instead?

          No Yes
          • Contact Us
          • Careers
          • Terms of Use
          • Privacy Statement
          • Sitemap
          • © ServiceNow. All rights reserved.

          Subscribe Subscribed Unsubscribe Last updated: Tags: January February March April May June July August September October November December No Results Found Versions Search preferences successfully updated My release version successfully updated My release version successfully deleted An error has occurred. Please try again later. You have been unsubscribed from all topics. You are now subscribed to and will receive notifications if any changes are made to this page. You have been unsubscribed from this content Thank you for your feedback. Form temporarily unavailable. Please try again or contact  docfeedback@servicenow.com  to submit your comments. The topic you requested does not exist in the release. You were redirected to a related topic instead. The available release versions for this topic are listed There is no specific version for this documentation. Explore products Click to go to the page. Release notes and upgrades Click to open the dropdown menu. Delete Remove No selected version Reset This field is required You are already subscribed to this topic Attach screenshot The file you uploaded exceeds the allowed file size of 20MB. Please try again with a smaller file. Please complete the reCAPTCHA step to attach a screenshot
          Log in to personalize your search results and subscribe to topics
          No, thanks Login