Javascript to get the Instance server URL | Community
Skip to main content
Level 3
September 27, 2018
Solved

Javascript to get the Instance server URL

  • September 27, 2018
  • 1 reply
  • 2319 views

Hi

I am using Adobe Campaign Classic v6.7. I want to write a javascript to get the serverl url of my instance in an workflow.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by david--garcia

Hi Rahul,

You can query it from the options or get the instance name also

logInfo("http://"+instance.hostname);

logInfo(getOption("NmsServer_URL"));

Here are other options available;

  1. NmsServer_IntranetURL
  2. NmsServer_MirrorPageUrl
  3. NmsTracking_SecureServerUrl
  4. NmsTracking_ServerUrlList

i.e.

1 reply

david--garcia
david--garciaAccepted solution
Level 10
September 27, 2018

Hi Rahul,

You can query it from the options or get the instance name also

logInfo("http://"+instance.hostname);

logInfo(getOption("NmsServer_URL"));

Here are other options available;

  1. NmsServer_IntranetURL
  2. NmsServer_MirrorPageUrl
  3. NmsTracking_SecureServerUrl
  4. NmsTracking_ServerUrlList

i.e.