首页 > 解决方案 > Power Automate 无法在 Azure DevOps 中创建工作项(共享收件箱)

问题描述

我正面临一个非常奇怪的情况,因为我直到现在才意识到这一点。

当收件箱中收到电子邮件时,我正在使用电源自动创建工作项,并将附件保存在 SharePoint 中,并在现有工作项中更新这些附件的链接。我使用我的用户创建了这个工作流程,并且在电子邮件的“收件人”字段中,还提供了我的电子邮件地址以用于测试目的。经过多次迭代,我能够成功构建示例流程。

现在,我不知道的是,这个工作流程只有在我在“收件人”字段中提供我的电子邮件地址时才能工作,因为这个工作流程归我所有。当我更新工作流程以提供不同的电子邮件地址并测试流程时,它失败并给出了超时异常,它无法检测到触发器。

我的问题是:

我的真实情况是,我们将在共享收件箱中接收电子邮件请求,一旦我们收到这些电子邮件,就应该创建相应的工作项。在这种情况下,如何使用 power-automate 创建工作项?我是否需要通过获取用户凭据在共享收件箱本身上创建此自动化工作流程,或者是否有任何其他替代方法来实现它?

我看到有一个模板可用于使用共享收件箱创建工作项。这是它显示的内容,当我尝试使用此流程时。

错误

谢谢,

蜜蜂

标签: azure-devopspower-automateazure-boards

解决方案


When you use your account to issue any Outlook REST API request or when you use any Outlook functionality in Microsoft Flow, you may receive the error message: REST API is not yet supported for this mailbox To fix this issue, use one of the following options, as appropriate for your situation.

  1. Migrate your mailbox account
  2. Wait for your mailbox to update, or request a developer preview account
  3. Upgrade your Office 365 plan

Please refer this link for more details: "REST API is not yet supported for this mailbox" error for request to a mailbox

As a workaround

  1. Use your account create the flow-> open the flow and edit the tab owners, then add the shared inbox as owner

  2. Login Power Automate via the shared inbox-> click My flows and select Team flows->open the flow and edit it->click the button "..." and add new connection->enter the shared inbox email and password, then change the Original Mailbox Address to shared inbox.

  3. Then it will create work item In the Azure DevOps when the shared inbox receives an email

Update1

The distribution list has email address Steps: Expand the flow When a new email arrives and enter the distribution list email to the field To or CC, then it will create a work item when the distribution list receives an email.

when an email request with a particular subject

We can configure the field Subject Filter to do this.

enter image description here


推荐阅读