Chana
Chana

Reputation: 3

How to add a button control to trigger a power automate flow from Azure work item

Hi, As there's no any direct integration from Azure DevOps to SharePoint, I've created a powerautomate flow to create a link in the work item which directs to a sharepoint folder which is created in the background upon on saving the work item. But the flow is really slow and I would like to add a button to the work item that will trigger the particular flow, so the link will be appear upon on clicking the button. Any ideas on a work around for this?

I refered this to create the flow

https://danikahil.com/2021/11/requirements-details-including-attachments-azure-devops-integration-with-teams-and-sharepoint.html

Upvotes: 0

Views: 537

Answers (2)

ananeto
ananeto

Reputation: 16

The error that Chana mentions of Flow save failed with code 'CannotDisableTriggerConcurrency' is annoying! The best workaround I have found is to recreate the flow in an efficient way, as described in this article.

Upvotes: 0

Sam Nseir
Sam Nseir

Reputation: 12111

The thing is, the link won't appear when clicking the button, the flow will still need to run to create the folder and then update the work item.

An avenue to explore, is change your flow to be triggered by an HTTP Request, then look at using Azure DevOps webhooks to call your flow. https://learn.microsoft.com/en-us/azure/devops/service-hooks/services/webhooks?view=azure-devops

I suspect this may quicker than the On Item Created trigger. And if not, then you can look to add a link to your flow with the same HTTP Request trigger, to your work item.

Upvotes: 0

Related Questions