I want to set up a Dev-Stage-Prod setup for an app, where I send requests to an external server with the same environments. Every environment has a slightly different URL. I would like to do this with Environment Variables, since it has to be different on every environment, so site settings will not do.
I have set up a solution, that adds a `new_submit_url` ENV variable during a deployment. I have verified that the correct table entries are created in the environment variable definition and value dataverse tables. Question is, how do I access these values in the app?
I have tried `Xrm` (it's undefined), liquid entities (nothing loads), Portals Web API (also nothing loads).
I am quite sure I'm just missing something extremely obvious, can anyone show me an example of how to extract an environment variable's value by its schema name?