Expand my Community achievements bar.

SOLVED

System name as an instance variable?

Avatar

Level 2

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

1 Accepted Solution

Avatar

Correct answer by
Employee

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

View solution in original post

1 Reply

Avatar

Correct answer by
Employee

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