This may not be the preferred way of working with Flow (or should I say Power Automate?) but I would like to trigger a Flow from a PowerShell script.
I've found a lot of cmdlets on this https://docs.microsoft.com/en-us/power-platform/admin/powerapps-powershell but none of them can trigger a flow? Any suggestions?
Solved! Go to Solution.
Hi @benoitemiel
I have done this in two different ways in the past.
1. Use a "When a HTTP request is received" trigger, and then call the REST endpoint for the trigger from PowerShell. Off the top of my head I the commandlet for this is Invoke-RestMethod, but may be worth a quick search to confirm that.
2. Use a SharePoint list (or suitable alternative) as a queue, and then use a trigger based on the SharePoint list. So when I want something to execute, I place an entry into SharePoint, using PowerShell. I can set up my various parameters as SharePoint columns, and I can also include a status column to track progress.
Let me know if either of those works for you.
Proud to be a Flownaut!
Community Leader: Black Country PowerApps & Flow User Group
Hi @benoitemiel
I have done this in two different ways in the past.
1. Use a "When a HTTP request is received" trigger, and then call the REST endpoint for the trigger from PowerShell. Off the top of my head I the commandlet for this is Invoke-RestMethod, but may be worth a quick search to confirm that.
2. Use a SharePoint list (or suitable alternative) as a queue, and then use a trigger based on the SharePoint list. So when I want something to execute, I place an entry into SharePoint, using PowerShell. I can set up my various parameters as SharePoint columns, and I can also include a status column to track progress.
Let me know if either of those works for you.
Proud to be a Flownaut!
Community Leader: Black Country PowerApps & Flow User Group
User | Count |
---|---|
27 | |
16 | |
13 | |
8 | |
5 |
User | Count |
---|---|
9 | |
5 | |
3 | |
3 | |
2 |