1). Set the Recurrence

2). Get Query Result

Enter the Query ID from the Query URL as shown below

3). Initialize Variable

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

<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

{
"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": "********************"
}
}