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 / Get work Item children...
Power Automate
Unanswered

Get work Item children status and work hours when parent task is closed

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi,

 

whenever a parent item is closed ,I am trying to fetch the work item children status and work hours. If any child item is not in done state, I will notify the parent item assignee to about closing the child task.

 

Steps I have taken,

1. Trigger : When work Item is closed.

2. Action : Send an Http request to Azure dev Ops.

Azure devops requestAzure devops request

Here i am trying to fetch all the child item for Work ID: 115968 (Also tried Dynamic Field. ID) but it is failing at this step only with error : "Unable to parse Base64 encoded bytes. clientRequestId: d86b2ede-c91b-4031-beaf-ef2773b9fb79"

 

Then I storing this query in to variable and

3. Using action : Get Query Results.

4. Apply to each : Send an email if state is not closed.

 

Any help is appreciated to resolve this issue.

 

Thanks,

 

Categories:
I have the same question (0)
  • Expiscornovus Profile Picture
    33,863 Most Valuable Professional on at

    Hi @RK_RPA,


    As far as I am aware Query by WIQL request are POST requests and not GET requests.

    https://learn.microsoft.com/en-us/rest/api/azure/devops/wit/wiql/query-by-wiql?view=azure-devops-rest-7.0&tabs=HTTP

     

    Can you try something like below?

     

    {
     "query": "SELECT [System.Id],[System.AssignedTo],[System.State],[System.Title],[System.Tags]
    FROM workitemlinks
    WHERE ([System.Links.LinkType] = 'System.LinkTypes.Hierarchy-Forward')
     AND ([Source].[System.Id] = '@{triggerOutputs()?['body/fields/System_Id']}')"
    }

     

    querybywiql.png

     


     

    Happy to help out 😁

    I share more #PowerAutomate and #SharePointOnline content on my Blog, Bluesky profile or Youtube Channel

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 Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 476

#2
Haque Profile Picture

Haque 424

#3
David_MA Profile Picture

David_MA 350 Super User 2026 Season 1

Last 30 days Overall leaderboard