How to use environment variables in a Code App (beyond data sources)? #384
|
I’m trying to understand how to use environment variables in a Code App. The official documentation only covers usage for data sources: However, it’s unclear how to work with string environment variables. Questions: How can string environment variables be accessed and used in a Code App? |
Replies: 1 comment 2 replies
|
Hi, The documentation here explains how to call Dataverse Actions and Functions from a Code App. I would recommend trying this approach with the 'RetrieveEnvironmentVariableValue' function: https://learn.microsoft.com/en-us/power-apps/developer/data-platform/webapi/reference/retrieveenvironmentvariablevalue?view=dataverse-latest |
Hi,
The documentation here explains how to call Dataverse Actions and Functions from a Code App.
https://learn.microsoft.com/en-us/power-apps/developer/code-apps/how-to/add-dataverse-action-function
I would recommend trying this approach with the 'RetrieveEnvironmentVariableValue' function: https://learn.microsoft.com/en-us/power-apps/developer/data-platform/webapi/reference/retrieveenvironmentvariablevalue?view=dataverse-latest