cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
mbhammad
Level: Powered On

SharePoint List to ADO Work Item

Hi Everyone,

 

We have a SharePoint (SP) list where users create/modify items and ALWAYS attach a file within the list. Below is what I'm trying to achieve:

 

  • When a SP List Item is Created or Modified, Create or Modify a Work Item (Task) on Azure DevOps (ADO)

AND 

  • Attach the List Item Attachment File to that same Work Item (Task) on ADO ... OR.... Save the Attachment File in the ADO Repository and Link it with the related Work Item (Task)

 

Please help! Thank you in advance.

2 ACCEPTED SOLUTIONS

Accepted Solutions
Community Support Team
Community Support Team

Re: SharePoint List to ADO Work Item

Hi @mbhammad,

 

You could refer to the following steps to create the work item of DevOps according to the created or modified items in the SharePoint, then add the attachments into it.

 

This is the whole steps:

Annotation 2019-09-04 102740.pngThese are key steps that you need to notice is send the HTTP request to create the Attachment.

- Upload Attachment

Full documentation for this endpoint can be found here: https://docs.microsoft.com/en-us/rest/api/azure/devops/wit/attachments/create?view=azure-devops-rest...

Annotation 2019-09-04 102813.png

- Parse JSON

{
    "type": "object",
    "properties": {
        "id": {
            "type": "string"
        },
        "url": {
            "type": "string"
        }
    }
}

- Relate Attachment

Full documentation for this call can be found here:

https://docs.microsoft.com/en-us/rest/api/azure/devops/wit/work%20items/update?view=azure-devops-res...
Annotation 2019-09-04 102844.png

This is a simplified step, a lot of details have been omitted, the specific source is from @if you want to know more, you can click on this blog:

https://blog.mattweston365.com/2019/06/uploading-attachments-from-sharepoint.html

Best Regards,
Community Support Team _ Lin Tu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Community Support Team
Community Support Team

Re: SharePoint List to ADO Work Item

Hi @mbhammad,

 

Yes, you can use the Get Work item details action instead of Create a new item action, then put the Dynamic content of Get work item details into these previous steps.Annotation 2019-09-09 094004.png

Best Regards,
Community Support Team _ Lin Tu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

4 REPLIES 4
Community Support Team
Community Support Team

Re: SharePoint List to ADO Work Item

Hi @mbhammad,

 

You could refer to the following steps to create the work item of DevOps according to the created or modified items in the SharePoint, then add the attachments into it.

 

This is the whole steps:

Annotation 2019-09-04 102740.pngThese are key steps that you need to notice is send the HTTP request to create the Attachment.

- Upload Attachment

Full documentation for this endpoint can be found here: https://docs.microsoft.com/en-us/rest/api/azure/devops/wit/attachments/create?view=azure-devops-rest...

Annotation 2019-09-04 102813.png

- Parse JSON

{
    "type": "object",
    "properties": {
        "id": {
            "type": "string"
        },
        "url": {
            "type": "string"
        }
    }
}

- Relate Attachment

Full documentation for this call can be found here:

https://docs.microsoft.com/en-us/rest/api/azure/devops/wit/work%20items/update?view=azure-devops-res...
Annotation 2019-09-04 102844.png

This is a simplified step, a lot of details have been omitted, the specific source is from @if you want to know more, you can click on this blog:

https://blog.mattweston365.com/2019/06/uploading-attachments-from-sharepoint.html

Best Regards,
Community Support Team _ Lin Tu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

mbhammad
Level: Powered On

Re: SharePoint List to ADO Work Item

Thank You @v-litu-msft .. It works great for new items.. But when an item is modified on SP, it creates a "New" work item on Azure DevOps (ADO).. Can it update the same/existing work item and attachment on ADO?

 

Many thanks for your help.

Community Support Team
Community Support Team

Re: SharePoint List to ADO Work Item

Hi @mbhammad,

 

Yes, you can use the Get Work item details action instead of Create a new item action, then put the Dynamic content of Get work item details into these previous steps.Annotation 2019-09-09 094004.png

Best Regards,
Community Support Team _ Lin Tu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

mbhammad
Level: Powered On

Re: SharePoint List to ADO Work Item

Neat! Thank you so much @v-litu-msft ...

Helpful resources

Announcements
firstImage

Microsoft Business Applications Virtual Launch Event

Watch the event on demand for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 Release Wave 2 Plan

Power Platform 2019 Release Wave 2 Plan

Features releasing from October 2019 through March 2020.

thirdimage

Flow Community User Group Member Badge

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

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Flow Community Video Gallery!

Users Online
Currently online: 317 members 4,338 guests
Please welcome our newest community members: