cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
vidhi_vaish03
Regular Visitor

Getting Unauthorized 401 error while sending patch request to Azure devops

Hey,

 

I have been trying to auto assign workitems in azure devops and every time i am sending an http request to Devops i get Unauthorized 401 error. I can create a work item in the same directory when doing it directly from ADO and can even create a work item using power automate connectors but the http request is not working. 
Any solution?

vidhi_vaish03_0-1630664485144.pngvidhi_vaish03_1-1630664515016.png

 

1 ACCEPTED SOLUTION

Accepted Solutions
Expiscornovus
Super User
Super User

Hi @vidhi_vaish03,

 

Can you try the example below.

 

updateassignedto.png

View solution in original post

4 REPLIES 4
Expiscornovus
Super User
Super User

Hi @vidhi_vaish03,

 

Can you replace the HTTP action by the Send an HTTP request to Azure DevOps action:

https://docs.microsoft.com/en-us/connectors/visualstudioteamservices/#send-an-http-request-to-azure-...

 

sendanhttprequestdevops.png

 

If this approach doesn't work can you share a bit more details of which PATCH request you are trying to send? (Uri, body, etc.)

Hey!

 

I have been trying to auto update a work item whenever it is created.

The only thing i want to do is to auto assign work items to a specific person when ever a work item gets created.

If there is any other way possible for this other than HTTP Request it will be great !

 

Maybe I am not able to get authorization correctly for this HTTP Request.

 

Tried using "Send a http request to Azure DevOps but now receiving different sought of error but is still un authorized 

This is my request.

vidhi_vaish03_0-1630680797977.png

 

This is the error I am getting

 

vidhi_vaish03_1-1630681078736.png

 

Expiscornovus
Super User
Super User

Hi @vidhi_vaish03,

 

Can you try the example below.

 

updateassignedto.png

View solution in original post

vidhi_vaish03
Regular Visitor

Hey!

 

This works! Thanks a lot! Its like magic. 

Many thanks.

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Users online (2,879)