In our previous blog, we covered regenerating the SAS key to secure Power Automate flows. While security is important, another challenge is managing callback URLs, which are crucial for external applications to trigger automation, especially in large-scale implementations. Manually accessing the Power Automate portal, finding the flow, and copying the callback URL each time is time-consuming and prone to errors.
To solve this, we developed a method to programmatically fetch and store the callback URL using the Power Automate Management connector within a Power Automate flow.
In this blog, we will demonstrate how to automatically populate the Callback URL field with the URL of a specific HTTP-Triggered flow whenever a new Setting record is created in Dataverse. Additionally, this approach can be customized by adding conditions to retrieve different HTTP-Triggered flow callback URLs based on your requirements.
Step-by-Step Approach to Retrieving and Storing the Callback URL
1. Sign in to the Power Automate Portal and navigate to your flows.
2. Locate the flow that contains the HTTP-triggered action and note down the exact name of this flow.
3. Create a new flow and choose the trigger based on your requirement. In this case, we want to trigger the Power Automate flow when a new Setting entity record is created in Dataverse.
4. “When a row is added” needs to be set as the trigger. Choose the table name as “Setting” (Custom Entity) and set the Scope to Organization.
5. Add a new action, search for Power Automate Management, and select it.
6. Under actions, choose “List Flows as Admin (V2)”.
7. Under Environment, select a specific environment or use the current environment by setting the custom value:
8. Add an action and search for “Filter Array”. Filter the flow by its display name:
9. Add a new action, search for “List Callback URL” under the Power Automate Management connector. Enter the following details:
10. Check whether the callback URL from the “List Callback URL” action is null or not. If not null, update the respective entity field in Dataverse.
By implementing this approach, you can automate the retrieval of call-back URLs, saving time and improving efficiency. With the Power Automate Management connector, the URL can be stored in Dataverse for easier and more scalable integrations.
The post Auto-Populating Power Automate Callback URLs for HTTP Flows in Dataverse first appeared on Microsoft Dynamics 365 CRM Tips and Tricks.
Original Post https://www.inogic.com/blog/2025/03/auto-populating-power-automate-callback-urls-for-http-flows-in-dataverse/