Skip to main content
Nintex Community Menu Bar

How to Get Host Server name

  • February 13, 2009
  • 3 replies
  • 41 views

Forum|alt.badge.img+6

 


I want to write a server Side Event to loop through the Smart OBject so that i can create a XML Filed and update the smart Object values (Actually this is a repeating table contains multple Approver user Names) into the XML filed


I saw some sample codes in this forum to call the SmartObject on ServerSide. These example they Hard coded the Server Name (like BlackPearl,Localhost) and port number which i dont want to hard code. Is there any way i can get the server Name and Port number thorugh code so that i dont need to change the server info when i deploy into QA and Production server.


 

3 replies

Forum|alt.badge.img+3
  • February 13, 2009
Could you get the connection string from the environment variable "Workflow Server"?

Forum|alt.badge.img+6
  • Author
  • February 13, 2009
I do not know how to get the Connection string from environment Variable. If you know please advise me how to.(which namespace i have to use)

Forum|alt.badge.img+3
  • February 13, 2009

Without trying this myself, it seems like the stringtable should have those variables.

 

http://k2underground.com/forums/thread/22634.aspx