You can get all the constants that are marked as public by calling Configuration.getPublicConstants() in a java activity.
You can retrieve the values using Configuration.getConstantValue(String)
Hi Tim,
You could also use the Deploy API to retrieve these for your app(s) and environments. That way you can manage and set them from a single ‘operations’ app?
For anyone reading this question looking to do this manually in Studio Pro:
The ‘Find Advanced’ option in Studio Pro can do this for you, this pop up can be reached via the ‘Edit’ drop-down menu or by using Ctrl + Shift + F.
Search for ‘Documents’
Document type 'Constants’
It will show you the default values of the constants, these can of course be set differently for every environment.
Hi Tim,
But it you just want to go with constants, then Deploy API or Config.JSON might be the option.
We are introducing a new API -
Configuration.getConstants()
This will allow you to get all the constants (private and public) in your application.
This will most probably be released in v10.12.3 (MTS).