Answers for "How to get "email " parameter value automatically?" https://knowledge.亚搏在线safe.com/questions/78792/how-to-get-email-parameter-value-automatically.html The latest answers for the question "How to get "email " parameter value automatically?" Answer by mark2atsafe https://knowledge.safe.com/answers/78826/view.html

If you are deploying this on FME Server then you can get the username using the parameter $FME_SECURITY_USER I believe.

I don't know if we have a Desktop parameter or env variable for the currently logged in username, but I did find that I could obtain it using Python:

import fme import fmeobjects import getpass # Template Function interface: def processFeature(feature): feature.setAttribute("MyUsername",getpass.getuser()) pass

So once I get my username I could tag @safe.com on the end to give me my email address.

I hope this is what you were looking for.

Wed, 19 Sep 2018 18:43:43 GMT mark2atsafe