Skip to main content

Hi.

I have to create workspace in FME2015 and I need to fill specified Published Parameter with Environment Variable. How can I do that? Via startup script or something else?

Try the EnvironmentVariableFetcher


Ah, sorry, I see you wanted it in a parameter.

Try using a scripted parameter. Example returning PATH:

Note that the parameter cannot be published, since it's scripted.


The other thing you should be able to do is use ${variablename}

For example, on my FME I created a user parameter of type text and in the default value entered ${appdata}

A ParameterFetcher returned the value of that as C:\\Users\\imark\\AppData\\Roaming


The other thing you should be able to do is use ${variablename}

For example, on my FME I created a user parameter of type text and in the default value entered ${appdata}

A ParameterFetcher returned the value of that as C:\\Users\\imark\\AppData\\Roaming

very nice,

 

thanks, it also works

 

 


Reply