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 / Fetch the list of work...
Power Automate
Answered

Fetch the list of work items from azure devops, count the work items, format it into table and send an email

(0) ShareShare
ReportReport
Posted on by

1). Set the Recurrence

hjoshi4u26_0-1681796524737.png

 

2). Get Query Result

hjoshi4u26_1-1681796704215.png

Enter the Query ID from the Query URL as shown below

hjoshi4u26_2-1681796853301.png

 

3). Initialize Variable

hjoshi4u26_3-1681796904822.png

{
    "inputs": {
        "variables": [
            {
                "name""ClosedCount",
                "type""integer",
                "value""@length(outputs('Daily_Runs_Summary_Bugs_Closed_in_Current_Week')?['body/value'])"
            }
        ]
    },
    "metadata": {
        "operationMetadataId""*****************************"
    }
}

 

4). Compose

hjoshi4u26_4-1681796989931.png

<style>
table thead
{
background: #1C6EA4;
font-weight: bold;
color: #FFFFFF;
}
table, td, th
{
border: 1px solid black;
border-collapse: collapse;
}
</style>
<table>
<thead>
<tr>
<th>Created Count</th>
<th>Closed Count</th>
</tr>
</thead>
<tbody>
<tr>
<td>@{variables('CreatedCount')}</td>
<td>@{variables('ClosedCount')}</td>
</tr>
</tbody>
</table>

 

5). Send an email

hjoshi4u26_5-1681797132838.png

{
    "inputs": {
        "host": {
            "connectionName""*********",
            "operationId""SendEmailV2",
            "apiId""*******************"
        },
        "parameters": {
            "emailMessage/To""****************",
            "emailMessage/Subject""Test",
            "emailMessage/Body""<p>@{outputs('Compose')}</p>",
            "emailMessage/Importance""Normal"
        },
        "authentication""@parameters('$authentication')"
    },
    "metadata": {
        "operationMetadataId""********************"
    }
}
 
Categories:
I have the same question (0)
  • Verified answer
    hjoshi4u26 Profile Picture
    on at

    I do not have a problem with this flow. Just posting an idea.

    @krishsolver 

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 May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Valantis Profile Picture

Valantis 389

#2
Vish WR Profile Picture

Vish WR 331

#3
David_MA Profile Picture

David_MA 298 Super User 2026 Season 1

Last 30 days Overall leaderboard