Hello,
I have a specific flow that need more attention and I would like to use an automation process that will get all the flow run history.
I have found some articles that describe how to build an custom connector that could do that, for example: Custom connector to get flow run history.
The problem is that will return only the "last 50" runs and I don't find a way to use the "nextLink" or "$skiptoken" attribute from the resulting JSON that looks like this:
{
"value": [
{
"name": "RunName-1",
"id": "/providers/Microsoft.ProcessSimple/environments/...",
"type": "Microsoft.ProcessSimple/environments/flows/runs",
"properties": {
"startTime": "2021-12-03T15:43:06.2437584Z",
"endTime": "2021-12-03T16:46:17.7240414Z",
"status": "Succeeded",
"code": "Terminated"
}
},
{
"name": "RunName-2",
"id": "/providers/Microsoft.ProcessSimple/environments/...",
"type": "Microsoft.ProcessSimple/environments/flows/runs",
"properties": {
"startTime": "2021-12-03T14:30:40.9044521Z",
"endTime": "2021-12-03T14:30:48.4232059Z",
"status": "Succeeded",
"code": "Terminated"
}
}
],
"nextLink": "https://emea.api.flow.microsoft.com/providers/Microsoft.ProcessSimple/environments/{EnvironmentName}/flows/{FlowName}/runs?api-version=2016-11-01&%24skiptoken=eyJuZXh0UGFydGl0aW9uS2V5IjoiMSE4IVFUaEVRakEtIiwibmV4dFJvd0tleSI6IjEhODQhTXpWRVJUaEJRVVV5TURjek5FRTRSRGszUWpJM05UTTNRams0UkRCRE5ERmZNRGcxT0RVMk16QTJOVFUyTVRneU5UZ3lORGN3TVRBNU16STRNRGstIn0%3d"
}
I have tried to find some inspiration in the article Microsoft Graph Delta Query from Microsoft Flow: Part 2 but I cannot find enough information how to adapt it to flows.
Does anybody have successfully automate the process of getting all the run history? I would like to avoid manually download the CSV file history or use an "desktop flow" to download that CSV file.
Kind Regards,
Lucian