I want to trigger a flow after deployment of solution which updates Environment variable of http URL.so that it will be used by javascript and scheduled flow for export process. How to run this flow without going into powerautomate or powerapps as manual after deployment.Please let me know how to do this step currently this flow is working and updating EV value by finding url in dev environment?
There are two ways to update the environment variable when you deploy the solution in the new environment.
Manual Method: When you import a solution that contains Environment Variables into a new environment, the system automatically prompts you to enter the Environment Variable values during the import process.
While importing:
A popup appears asking for the Environment Variable value.
You can enter the correct URL (for that environment).
The value gets stored in the environmentvariablevalue table.
This is the simplest and Microsoft-recommended method if manual input is acceptable.
Automatic Method – Trigger After Solution import: If you do not want to update the Environment Variable manually, a better automated approach is to trigger a flow after the solution is fully imported.
Create a cloud flow with the following configuration: Trigger:
When a row is added (Dataverse trigger)
Table: msdyn_solutionhistory
Trigger Condition:
Solution Name equals your deployed solution name
Status equals Completed
This ensures:
The solution is fully imported
All components (including flows and environment variables) exist
The trigger runs only once per successful import
After the trigger:
Add an Action “Run a Child Flow” this will automatically trigger your child flow.
Hope this helps.
Thanks!
Inogic
Was this reply helpful?YesNo
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.