Issues Handling Multiple Domain Names in Custom App Development

Hi community,

I’m currently developing a Custom App and have run into an issue with setting the base URL, as the app provides different domain names for various user types. Specifically:

  • Type A: https://{domainname}/xxx/api/
  • Type B: https://{domainname}/api/

The challenge lies both in handling the variable {{domainname}} and the different URL structures. For the second issue, I’m considering addressing it by creating separate modules for each type, but that feels like a less-than-ideal solution. As for the first issue, I tried passing parameters through the connection and referencing them in the base URL, such as:

  • https://{{connection.domainname}}/api
  • https://{{connection.response.base}}/api
  • {{connection.body.baseurl}}

Unfortunately, these approaches have resulted in errors. I believe this might be due to my incomplete understanding of how Custom Apps work, although I’ve already gone through the tutorials several times. Has anyone faced similar issues or found an effective solution for this kind of setup? Any insights or best practices would be greatly appreciated!

Thanks in advance!

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.