web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / HTTP Request to remove...
Power Automate
Unanswered

HTTP Request to remove parent link in Azure DevOps

(0) ShareShare
ReportReport
Posted on by

Hello,

 

i have a flow to change parent link on the work item under construction and i am stuck on part where i need to remove parent link before adding a different one. I found out, that the removal can be done with HTTP request, but i have never worked with that before. From what i learned, it can be done like this:

AntiHero7_0-1592895099809.png

In the /relations part, the number is for index of the link i want to remove. But i don't want to remove the first link, because the flow check various work items which can have more links. So, could someone please help me with finding a solution for removing just parent link? As i mentioned, this is first time with http requests. I also read a lot of documentation, but i only got this far.

 

Thanks in advance for any help 🙂

Categories:
  • CS-31031032-0 Profile Picture
    on at

    This is a long walk but i tried it and it works...

     

    GET on _apis/wit/workitems/{ID}?$expand=relations and put its output through a Parse JSON step.  Initialize a counter variable from -1, and make it increment through body('Parse_JSON')?['relations'].  whether your loop is an "Apply to Each" or a "Do until", the important is to check for items('Apply_to_each')?['attributes']?['name'] = Parent Once you hit that point, your counter will be the index to put on your PATCH call.

     

    chrissahagun_0-1615956834839.png

    xParentIndex would be the number you'll put in /relations/????

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
11manish Profile Picture

11manish 302 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 263

#3
Henil Profile Picture

Henil 115

Last 30 days Overall leaderboard