Hello, I need to use a label on a pages with the execution environment of the application, is there any way to obtain said environment?
asked
Raúl Cuerdas
2 answers
2
Hi Raúl,
Two answers come to mind:
Use the GetApplicationURL Java actions from the CommunityCommons module (located under Misc) in a DataView using a Microflow. You can return a helper entity (non-persistent) with an enumeration based upon a string comparison, so that you can show/alter the label based upon the environment
Or, create a constant which value gets set differently per environment. E.g. local, acceptance, production. Again a DataView using a Microflow can return an object based upon the constant value, which you use to alter the visibility of the label
All the best,
Jordy
answered
Jordy Kuijpers
0
You can create a constant which will store your environment name. It should be Exposed to client:
Then you can create a text on page or a label where you will show that constant value: