I have a canvas app and in the OnStart, if there is a parameter passed with a record ID, it will navigate to a screen with a view form, opening that specific record. I'd like to store the URL on the record for a completely separate reason but the app exists in multiple environments, so the app URL changes.
Ideally, I would like to store the app URL as an environment variable and then I could concatenate that with the parameter and record ID to generate the complete link.
Is there any way to get an environment variable value in the context of the Calculated column editor?
Thanks for the response. Marking as solution because my question was answered as this cannot be achieved via calculated column. The calculated column was to be used outside the context of the Power App so unfortunately workaround will not work for this.
Hi @Cooper01 ,
Could you tell me:
If so, I'm afraid it can't be achieved. Because the two entities ('Environment Variable Definitions' and 'Environment Variable Values') are managed, you cannot use this function.
In other types of entities, although you can use this function, you cannot get the value of the environment variable.
So, I suggest you get environment variables in the app. Then use the concat() function to generate a complete URL from the environment variables and ID.
It is a good choice to write the formula in the onstart property.
If you still have any question, please don’t hesitate to let me know.
Best Regards,
Wearsky
mmbr1606
22
Super User 2025 Season 1
stampcoin
17
ankit_singhal
11
Super User 2025 Season 1