Skip to main content
Nintex Community Menu Bar

Hi All,

i have one query related to Escalation custom coding. 

Previously in Escalation we click on view code and write custom code and according to condition it escalate

How we can such kind of customization in K2 FIVE.

 

Same code below

For (int i = 0; i < K2.ActivityInstance.Destinations.Count; i++)
{
  if (K2.ActivityInstance.Destinations.DataFieldsl"Action Result"].Value.ToString() == "Declined")
  {
    K2.GotoActivity("DeclinedStep");
  }
}

K2.GotoActivity("ApprovedStep"); 

Hi,


 


Did you have a fresh setup of K2 Five, or did you upgrade from 4.7 to K2 Five? If you are on a fresh install of K2 Five, then you can only use the K2 Designer to design your workflow. Unfortunately, the new workflow Designer does not come with the option to insert custom codes.


 


If you have upgraded from 4.7, and you have Visual Studio components insalled on 4.7 before you upgraded from K2 Five, those tools should still remain, and you should still be able to insert custom codes.


Reply