System name as an instance variable? | Community
Skip to main content
Level 2
June 13, 2017
Solved

System name as an instance variable?

  • June 13, 2017
  • 1 reply
  • 1157 views

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

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 vraghav

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

1 reply

vraghav
Adobe Employee
vraghavAdobe EmployeeAccepted solution
Adobe Employee
June 13, 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