System name as an instance variable?

Avatar

Avatar

timg96297954

Avatar

timg96297954

timg96297954

13-06-2017

Hi guys,

is it possible to integrate the name of the system, which adobe campaign is installed on (marketing application server), into a variable?

I need to configure an export workflow. There I would like to set the system-path on which the file will be saved. It will be somthing like that: "\appexec\MY_SYSTEM_NAME\export". This path varies by the name of the system for production and the test instance. So I would like to insert the name of the system as variable like this:

path = "\appexec\" + mySystemNameVariable + "\export"

The system name should be the name of the server and automatically filled in.

Thanks for your help in advance.

Kind regards,

Tim

Accepted Solutions (0)

Answers (1)

Answers (1)

Avatar

Avatar

Vapsy

Employee

Avatar

Vapsy

Employee

Vapsy
Employee

13-06-2017

Hi Tim,

While I'm trying to identify the JS API to get server name, there is an easy fix for this situation.

  1. Create an option inside the Campaign instance say serverName. This option will hold the server name depending upon Prod, Stage or Dev.
  2. Inside your workflow use the getOption function to retrieve this value.
    path = "\appexec\" + getOption('serverName')+ "\export"

Hope this helps.

Regards/,

Vipul