Is there an API reference available for accessing environment variable inside a coach view, ie in the events load(), view() etc?
Pinned topic Environment variables in Coach view
AndrewPaier 2700040K2Q711 PostsACCEPTED ANSWER
Re: Environment variables in Coach view2013-06-20T22:42:41Z in response to jthiru
As far as I can tell you cannot access anything in a coach view event that wasn't mapped in some manner on the configuration of that coach view. And in looking at the coaches there is a definite miss here as I can't seem to map an environment variable to any of the config options. Looks like you would have to make a local variable to pull the value from the environment variable and then hand it to the the coach view that way.
There is a chance that an eval() statement in the configuration tab might work, but I wouldn't want to depend on that since I doubt it is intentional.
kolban 10000004463314 PostsACCEPTED ANSWER
Re: Environment variables in Coach view2013-06-22T20:29:21Z in response to AndrewPaier
One other possible option would be to create a service which takes as a parameter the name of the environment variable and, when called, returns its value.
While writing this, it struck me that maybe there would be a REST service already available and there appears to be .... see:
This can be called from load(), view() etc etc