Skip to main content
Nintex Community Menu Bar

Accessing Environment in Process using code

  • January 14, 2008
  • 1 reply
  • 5 views

Forum|alt.badge.img+4

Hi,


How do I access the Environment fields in code inside my process. I have looked at the EnvironmentSettingsManager but need to understand if its best practice to use this class inside your process (require a reference to SourceCode.EnvironmentLibrary) to access the Enironment fields using code?


Cheers, G

1 reply

Forum|alt.badge.img+9
  • Nintex Partner
  • January 14, 2008

If you are simply trying to retrieve a value from an Environment Variable, you can use the StringTable object within a Server Event (just like in K2.net 2003).


For example:


            string strMailServer = K2.StringTable["Mail Server"];
 


HTH.