I use these two options:
- Override you ApplicationRootUrl in your Custom Settings so you use the java action you mentioned (GetApplicationURL):
to set in the modeler:
Cloud:
Second option ( I use the most):
Create a constant in your module and set it with your custom url. You can use the constant everywhere in your model after that.
Hi Marco,
This questions explains what the getApplicationurl java action is doing
https://forum.mendix.com/link/questions/3161
Since you have a custom domain, your best bet is to write some javascript that stores the url from the browser as as string, executes a microflow, and passes that string as a parameter. This way you can store the value in your database.
To pass this value as a string, I think you might need to create a non persistent entity with an attribute as a string.