使用 The Button Corporation(预览)中的物理按钮 (bttn) 来运行流Run your flows with physical buttons (bttns) from The Button Corporation (Preview)

通过按 bttn(The Button Corporation 生产的物理按钮)来触发流。Trigger your flows by pressing a bttn (a physical button made by The Button Corporation). 例如,可以按 bttn 触发一个流来执行以下任务:For example, you can press a bttn that triggers a flow to perform these tasks:

  • 联系支持人员获取位置信息contacts your helpdesk with location information
  • 向团队发送电子邮件sends an email to your team
  • 对日历进行分块blocks your calendar
  • 再订购办公用品reorders supplies

重要

必须在注册 bttn 后才能在流中使用它。You must register your bttn before you can use it in a flow.

提示

在创建流之前,在 bttn 网站上配置所有 bttn 属性,例如名称、位置以及电子邮件地址。Configure all bttn properties such as name, location, and email address on the bttn website before you create your flow.

还可以通过使用 Flic 物理按钮来触发流。You can also trigger a flow by using a Flic physical button.

先决条件Prerequisites

创建由 Flic 触发的流Create a flow that's triggered from a bttn

在本演练中,我们使用支持人员模板来创建可以通过单次按下 bttn 触发的流。In this walkthrough, we use a helpdesk template to create a flow that you can trigger with a single press of a bttn. 流运行时,它将生成支持请求,然后将该请求发送给支持人员。When the flow runs, it generates a support request and then sends it to the helpdesk. 支持请求为支持人员提供需要帮助的房间位置。The support request provides the helpdesk with the location of the room where help is needed. 本演练演示如何从模板中创建此流,但是还可以使用空白模板,这样用户能够完全控制流的各个方面。This walkthrough demonstrates how to create this flow from a template, but you can use the blank template, which gives you full control over all aspects of your flow.

可以使用任何这些模板为 bttn 快速创建流并连接到 Zendesk、Google 和 SharePoint 等:You can use any of these templates to quickly create flows for your bttn and connect to Zendesk, Google, and SharePoint, among others:

bttn 模板

提示:出于本演练的目的,请对 bttn 命名,该名称表示典型办公楼中的会议室。Tip: For the purposes of this walkthrough, give your bttn a name that represents a conference room in a typical office building.

bttn 的设置应类似于以下示例(摘自 bttn 网站):The settings for your bttn should resemble this example (from the bttn website):

bttn 模板

现在,你已注册并配置 bttn,让我们开始创建流。Now that you've registered and configured your bttn, let's get started creating our flow.

登录并选择模板Sign in and select a template

  1. 登录到 Microsoft FlowSign into Microsoft Flow.

    登录

    注意:可以在适用于 AndroidiOSWindows Phone 的 Microsoft Flow 移动应用中创建流,作为一种替代。Note: As an alternative, you can create flows in the Microsoft Flow mobile app for Android, iOS, or Windows Phone.

  2. 在搜索栏中输入“bttn”,然后选择搜索图标。Enter bttn into the search box, and then select the search icon.

    搜索

    选择“搜索”图标后,将显示可用于 bttn 的所有模板。After you select the search icon, all templates that you can use with bttns appear.

  3. 选择“使用 Bttn 调用会议室的技术支持”模板。Select the Use Bttn to call technical support for meeting room template.

    支持模板

授权 Microsoft Flow 连接到 bttnAuthorize Microsoft Flow to connect to your bttn

  1. 如果系统提示,请登录到 bttn 和 Office 365 Outlook 服务,以启用“继续”按钮。If prompted, sign into the bttn and the Office 365 Outlook services, which will enable the Continue button.

    凭据

  2. 登录到 bttn 服务时,授权 Microsoft Flow 使用 bttn。When you sign into the bttn service, authorize Microsoft Flow to use your bttns.

    重要说明:如果未授权 Microsoft Flow 使用 bttn,则无法从 Microsoft Flow 查看或连接到它们。Important: If you don't authorize Microsoft Flow to use your bttns, you can't see or connect to them from Microsoft Flow.

    授权

  3. 登录到这两个服务后,选择“继续”。After you sign into both services, select Continue.

    继续

选择触发流的 bttnSelect the bttn that triggers the flow

  1. 在“按下 bttn 时”卡上,打开 bttn ID 列表,然后选择想要使用的 bttn。In the When a bttn is pressed card, open the list of bttn IDs, and then select the bttn that you want to use.

    选择 bttn

    流现在应类似于以下示例。Your flow should now resemble this example.

    流概览

  2. 给流命名,然后选择“创建流”进行保存。Give your flow a name, and then select Create flow to save it.

    保存流

测试流并确认结果Test your flow and confirm results

  1. 按 bttn 上的按钮。Press the button on your bttn.

  2. 查看流的运行历史记录,以确认它已成功运行。View your flow's run history to confirm that it ran successfully.

    可以在 Microsoft Flow 网站或移动设备上查看运行历史记录。You can check run history on the Microsoft Flow website or on your mobile device.

    注意:在支持请求电子邮件中选择“确认”之前,运行状态设置为“正在运行”。Note: The run status is set to running until someone selects Acknowledge in the support-request email.

  3. 还可以确认电子邮件已发送给支持团队。You can also confirm that the email was sent to the support team.

    如果已按照步骤执行操作,支持电子邮件将类似于以下示例:If you've followed along, the support email looks similar to this example:

故障排除Troubleshooting

  • 如果流尚未触发,则登录到 The Button Corporation 的站点,并确认是否已记录按钮活动(按下)。If your flow wasn't triggered, sign into The Button Corporation's site and confirm whether the button activity (presses) are being recorded.
  • 此外,还可以深入了解 Microsoft Flow 站点上的运行活动,并检查错误消息。You can also drill into the run activity on the Microsoft Flow site and check for error messages.

详细信息More information