按计划运行流Run flows on a schedule

创建一个流,使之执行一个或多个符合以下条件的任务(例如在电子邮件中发送报表):Create a flow that performs one or more tasks (such as sending a report in email):

  • 一天、一小时或一分钟执行一次once a day, an hour, or a minute
  • 在指定的日期执行on a date that you specify
  • 在指定的天数、小时数或分钟数过后执行after a number of days, hours, or minutes that you specify

创建重复的流Create a recurring flow

  1. 登录到 Microsoft Flow,然后在顶部导航栏中选择“我的流”。Sign in to Microsoft Flow, and then select My flows in the top navigation bar.

    “我的流”选项

  2. 选择“从零开始创建”。Select Create from blank.

    从零开始创建流

  3. 在“搜索所有连接器和触发器”框中,键入“定期”,然后选择“计划 - 定期”。In the Search all connectors and triggers box, type Recurrence, and then select Schedule - Recurrence.

    查找定期触发器

  4. 在“定期”对话框中,指定所希望的流运行频率。In the Recurrence dialog box, specify how often you want the flow to run.

    例如,如果希望流每两周运行一次,可在“频率”下指定“周”,在“时间间隔”下指定“2”。For example, specify 2 under Interval and Week under Frequency if you want the flow to run every two weeks.

    指定定期

指定高级选项Specify advanced options

  1. 执行上一部分的步骤,然后选择“显示高级选项”。Follow the steps in the previous section, and then select Show advanced options.

    注意:这些选项随“时间间隔”和“频率”的设置值而变。Note: These options change based on the values to which Interval and Frequency are set. 如果你的屏幕与下图不符,请确保“时间间隔”和“频率”的设置值与图中所示相同。If your screen doesn't match the graphic below, make sure that Interval and Frequency are set to the same values that the graphic shows.

  2. 选择“时区”,指定是否让“开始时间”反映本地时区、协调世界时 (UTC) 等。Select a Time zone to specify whether the Start time reflects a local time zone, Universal Coordinated Time (UTC), etc.

  3. 按以下格式指定“开始时间”:Specify a Start time in this format:
    YYYY-MM-DDTHH:MM:SSZYYYY-MM-DDTHH:MM:SSZ

  4. 如果已在“频率”下指定“天”,请指定一天中运行流的时间。If you specified Day under Frequency, specify the time of day when the flow should run.

  5. 如果已在“频率”下指定“周”,请指定一周中运行流的日期,以及一天中运行流的时间。If you specified Week under Frequency, specify the day or days of the week on which the flow should run and the time or times of day when the flow should run.

    例如,可以将选项配置如下,使流的开始时间不早于 2018 年 1 月 1 日(星期一)的中午(太平洋时间),并让流每两周在星期二下午 5:30(太平洋时间)运行一次。For example, configure the options as shown to start a flow no sooner than noon (Pacific time) on Monday, January 1, 2018, and run it every two weeks on Tuesdays at 5:30p (Pacific time).

    指定高级选项

  6. 根据从头开始创建流中的说明,添加希望流执行的一个或多个操作。Add the action or actions that you want the flow to take, as Create a flow from scratch describes.

延迟流Delay a flow

  1. 登录到 Microsoft Flow,然后在顶部导航栏中选择“我的流”。Sign in to Microsoft Flow, and then select My flows in the top navigation bar.

    从零开始创建流

  2. 选择“从零开始创建”。Select Create from blank.

    从零开始创建流

  3. 根据从头开始创建流中的说明指定事件。Specify an event as Create a flow from scratch describes.

  4. 选择“新建步骤”,然后选择“添加操作”。Select New step, and then select Add an action.

    向流添加操作的选项

  5. 在操作列表中,执行以下任一操作:In the list of actions, do either of the following:

    • 选择“延迟”,指定“计时”,然后指定时间的“单位”,例如秒、分钟或小时。Select Delay, specify a Count, and specify a Unit of time such as second, minute, or hour.

    • 选择“延迟到”,然后按以下格式指定日期。Select Delay until, and then specify a date in this format.
      YYYY-MM-DDTHH:MM:SSZYYYY-MM-DDTHH:MM:SSZ

      添加延迟 按时间单位指定延迟 指定“延迟到”Add a delay Specify delay in units of time Specify delay until