Reputation: 16733
How can you have per environment configuration for Logic Apps?
With API Apps and Function Apps, I can use the Application Settings to hold environment specific values.
But there doesn't seem to be any equivalent in the Logic App blade ?
Appreciate you can set connections to other systems by setting the values of the API Connections, but what about simple things, e.g. I want the subject of an email to depend on an environment specific settings.
Upvotes: 0
Views: 3639
Reputation: 1403
Environment variables in Dataverse solution could be used. Value can be set per environment and then moved with the Solution between environments. These variables are accessible using Dataverse REST API.
environmentvariabledefinitions
tableenvironmentvariablevalues
table for real value per environmentGET [Org URI]/api/data/v9.2/environmentvariabledefinitions?$filter=schemaname eq 'prefix_VariableName'&$select=environmentvariabledefinitionid
GET [Org URI]/api/data/v9.2/environmentvariablevalues?$filter=_environmentvariabledefinitionid_value eq {environmentvariabledefinitionid}&$select=value
Reference
https://learn.microsoft.com/en-us/power-apps/maker/data-platform/environmentvariables
https://learn.microsoft.com/en-us/power-apps/developer/data-platform/webapi/reference/environmentvariabledefinition
https://learn.microsoft.com/en-us/power-apps/developer/data-platform/webapi/reference/environmentvariablevalue
Upvotes: 0
Reputation: 1474
Using parameters in your workflow definition. Here you have an example: https://platform.deloitte.com.au/articles/preparing-azure-logic-apps-for-cicd
Upvotes: 1