Showing results for 
Search instead for 
Did you mean: 
Not applicable

Sync VSTS with SharePoint



would like to sync VSTS User Stories wih a SharePoint List. If the record does not already exist, the flow will add it to the specified SharePoint List.

I tried this tamplate:


But I don't realy know how to handle it or it does't work!?

The example filter is: "VSTSID eq @{triggerBody()?['id']}"

If I don't use the filter the flow works but just for the first shot.


Thanks for your help!



Community Support
Community Support

Re: Sync VSTS with SharePoint

Hi @Anonymous,


Could you please share a bit more about your SharePoint list?

Do you create a desired column for filter section of "Get items" action within your SharePoint list?


If you want to use the "Add new work items from VSTS to a SharePoint list" built-in template to create your flow, you should enter the desired column name in the filter section of "Get items" action for this template to work:6.JPG

I assume that you don't want to create a record in your SharePoint list if the User Story Work Item with same Title has been created in your SharePoint list. I have created a SharePoint list on my side and the data structure of it as below:7.JPG

Note: The VSTSID column is used to store the Work Item ID of your VSTS User Stories. The UserStoryTitle column (Single line of text type column) is used to store the Title of the User Story Work Item of your VSTS.


I have made a test on my side and please take a try with the following workaround:

  • Add a "When a work item is created" trigger, specify Account Name, Project Name, Team Name and Type.
  • Add a "Get items" action, specify Site Address and List Name. Filter Query field set to following formula:


UserStoryTitle eq '@{triggerBody()?['Fields']?['System_Title']}'



 or you could type the following formula:

UserStoryTitle eq 'ID dynamic content of the trigger'


Note: The ID dynamic content is wrapped with single quotes.


  • Add a "Compose" action, Inputs set to following formula:




  • Add a "Condition", click "Edit in advanced mode", type the following formula:




  • Within "If/yes" branch of Condition, add a "Create item" action, specify Site Address and List Name. The VSTSID field set to ID dynamic content of the trigger.

Image reference:10.JPG



The flow works successfully as below:12.JPG



Best regards,


Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Not applicable

Re: Sync VSTS with SharePoint

Hi Kris(@v-xida-msft),


thx 4 your help.

I created a new list in SP with new columns/fields.... et voilà it has worked. 😄

Flow don't refrash the names of the columns if you change them in SP. I think, that was the problem.


Best regards


Helpful resources


Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021


Join the new Power Virtual Agents Community!

We are excited to announce the launch of Power Virtual Agents Community. Check it out now!


New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!


Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

Top Solution Authors
Users online (10,875)