Environment Variables in Windows

I am attempting to read an Environment variable in a test Windows instance of Camunda using groovy script. I’m using the techniques mentioned here in the forum, but the variables consistently return a value of null. I can run the same script in the command window and I see a value.

Is this a permissions issue where the Camunda server does not have access?

def baseUrl = System.getenv('AmpDataUrl');
println baseUrl;

@Bill_Powell were you able to come up with a solution for this one?

Yes, we were able to get this to work, but I don’t recall what needed to change at this point.

String baseUrl = System.getenv(‘VAL_DAL_URL’)

2 Likes