向流添加多个操作和高级选项Add multiple actions and advanced options to a flow

为同一触发器添加一个或多个高级选项和多个操作,对流进行自定义。Customize a flow by adding one or more advanced options and multiple actions for the same trigger. 例如,添加一个将电子邮件按高优先级发送的高级选项。For example, add an advanced option that sends an email message as high priority. 除了在向 SharePoint 列表添加项目时发送邮件以外,还可以在 Dropbox 中创建一个包含相同信息的文件。In addition to sending mail when an item is added to a SharePoint list, create a file in Dropbox that contains the same information.

先决条件Prerequisites

添加其他操作Add another action

在此过程中,需在流中间添加操作。In this procedure, you'll add an action in the middle of the flow. 此操作会将文件保存在 Dropbox 中,将项目在列表中存档。This action will save a file in your Dropbox, archiving the item in the list.

  1. flow.microsoft.com 的顶部导航栏中选择“我的流”。In flow.microsoft.com, select My flows in the top navigation bar.
  2. 在流列表中,选择要编辑的流。In the list of flows, select the flow that you want to edit.
  3. 选择“新建步骤”,然后选择“添加操作”。Select New step, and then select Add an action.

    折叠添加

  4. 在包含可用操作的列表中,搜索“创建文件”,然后选择“Dropbox - 创建文件”。In the list of possible actions, search for Create file, and then select Dropbox - Create file.

    搜索“创建文件”

  5. 如果出现提示,请提供 Dropbox 凭据。If prompted, provide your Dropbox credentials.
  6. 选择“文件夹路径”框右侧的文件夹图标。Select the folder icon on the right side of the Folder path box.
  7. 查找并选择你想要将新文件放置到的文件夹。Find and then select the folder in which you want to place the new file.

    搜索“创建文件”

  8. 将新文件的名称输入到“文件名”框中。Enter the name of the new file into the File name box. 请务必将扩展名(如“.txt”)追加到文件名。Be sure to append an extension, such as ".txt", to the file name. 在这里,让我们在文件的名称中使用 TweetId 来确保文件的唯一性。Here, let's use the TweetId in the file's name to ensure uniqueness of the files. 可能必须选择“查看更多”才能找到“TweetId”标记。You may have to select See more to find the TweetId token.
  9. 通过在“文件内容”框中键入内容,添加你希望文件包含的文本。Add the text that you want the file to contain by typing into the File content box. 还可以将标记添加到“文件内容”框中。You can also add tokens into the File content box.

    文件名和内容

    重要

    如果为文件提供一个与现有文件(在所选文件夹中)名称匹配的名称,则将覆盖现有文件。If you give the file a name that matches an existing file's name (in the selected folder), the existing file will be overwritten.

  10. 选择位于屏幕顶部的菜单上的“更新流”。Select Update flow, which is located on the menu at the top of the screen.
  11. 发送包含指定关键字的推文。Send a tweet that contains the keyword you specified.

    在一分钟内,Dropbox 帐户中会创建一个文件。Within a minute, a file is created in your Dropbox account.

对操作重新排序或将其删除Reorder or delete an action

  • 在 Dropbox 中创建文件以后,若要接收电子邮件,请移动 Dropbox 操作,方法是将其标题栏拖至电子邮件操作上方。To receive email after the file is created in Dropbox, move the Dropbox action by dragging its title bar above the email action. 在触发器(“发布新推文时”)和电子邮件操作之间的箭头上方释放该 Dropbox 操作。Release the Dropbox action over the arrow between the trigger (When a new tweet is posted) and the email action. (光标指示指示该操作是否已正确定位。)(The cursor indicates whether the action is positioned correctly.)

    备注

    如果使用了某个步骤的输出,则不能将该步骤移至另一个步骤前面。You can't move a step before another if you're using any outputs from that step.

    删除菜单

  • 若要删除某个操作,请选择要删除操作所对应的标题栏右侧旁边的省略号 (...),然后选择“删除”,再选择“确定”。To delete an action, select the ellipsis (...) near the right edge of the title bar for the action you want to delete, select Delete, and then select OK.

    删除菜单

    注意:如果在流中的任何位置使用某个操作的任何输出,则不能删除该操作。Note: You can't delete an action if you're using any outputs from it anywhere in the flow. 请先删除字段中的这些输出,然后即可删除该操作。First, remove those outputs from the fields, and then you can delete the action.

添加高级选项Add advanced options

开始时请使用包含“发送电子邮件”操作的流。Start with a flow that has a Send an email action.

  1. 选择“显示高级选项”,它位于“发送电子邮件”卡的底部。Select Show advanced options, which is located at the bottom of the Send an email card.

    然后,你将看到用于发送电子邮件的高级选项。You'll then see the advanced options for sending an email.

    Sharepoint 触发器

  2. 从“重要性”列表中选择“高”,然后选择“隐藏高级选项”以隐藏高级选项。Select High from the Importance list, and then select Hide advanced options to hide the advanced options.
  3. 选择位于屏幕顶部的菜单上的“更新流”。Select Update flow, which is located on the menu at the top of the screen.

    此步骤将保存更改。This step saves your changes.