in k2 studio, i generate code for my destination rule. here's the generated code
oDEManager = oDSH.GetManager(oDSH.GetUser("domainusername").Path)
how do i edit this code to dynamically get the value of my UserName data field which was filled up from the form? i tried
oDEManager = oDSH.GetManager(oDSH.GetUser(K2.ProcessInstace.DataFields("UserName").ToString).Path)
but i get an error saying object not reference not set to an instance of the object. please help.
thanks