3

Is it possible to use environmental variables in Mirth Connect in either the destination's Content or the destination's URL? URL or Content

Alex Rothberg
  • 10,243
  • 13
  • 60
  • 120

2 Answers2

5

Even if it's not possible directly, you always can use

var value = java.lang.System.getenv(varname);

in the Global Deploy Script, then add variables to global maps and access them in a usual way. The same code will work in other scripts.

Shamil
  • 910
  • 4
  • 17
1

it is possible to use environement variables as stated here

You should modify the deploy script to include :

$gc('env',java.lang.System.getenv());
return;

And the call should be as follow :

${env.get('HOME')}/Desktop/