How to Get Host Server name

  • 13 February 2009
  • 3 replies
  • 8 views

Badge +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

Badge +3
Could you get the connection string from the environment variable "Workflow Server"?
Badge +6
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)
Badge +3

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

 

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

Reply