System name as an instance variable?

Avatar

Avatar
Validate 1
Level 1
timg96297954
Level 1

Likes

2 likes

Total Posts

10 posts

Correct reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile

Avatar
Validate 1
Level 1
timg96297954
Level 1

Likes

2 likes

Total Posts

10 posts

Correct reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile
timg96297954
Level 1

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 (1)

Accepted Solutions (1)

Avatar

Avatar
Validate 1
Employee
Vapsy
Employee

Likes

370 likes

Total Posts

726 posts

Correct reply

342 solutions
Top badges earned
Validate 1
Boost 50
Boost 5
Boost 3
Boost 250
View profile

Avatar
Validate 1
Employee
Vapsy
Employee

Likes

370 likes

Total Posts

726 posts

Correct reply

342 solutions
Top badges earned
Validate 1
Boost 50
Boost 5
Boost 3
Boost 250
View profile
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

Answers (0)