Where can I read the Runtime information of my environment?

Hi, I’m trying to set up a deeplink to put into an email. I don’t want to hardcode server name etc, but pull it from the environment information. But I haven’t found that information. Is there a realistic way to get those information?
1 answers

Hi Patrick,

For the URL of the app, often a constant is used where you state the location like  “https://app.company.com”.

You can also use the Java Action GetApplicationUrl of the CommunityCommons module to retrieve the information stored in the Java parameter “ApplicationRootUrl”. In case of a custom domain, make sure you also set this information correctly in the Runtime Customization (see documentation here).

Does this help? Or are you looking also for other information?

Regards, Johan