Home Forum Blog Market Events Resources
Showing results for 
Search instead for 
Do you mean 
Occasional Contributor
Posts: 14
Registered: ‎12-20-2016

Custom Coding in Escalation

[ Edited ]

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[i].DataFields["Action Result"].Value.ToString() == "Declined")


Posts: 319
Registered: ‎04-22-2014

Re: Custom Coding in Escalation



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.

K2 will not accept any liability for any issues arising from actions taken in respect of the information provided by any forum member.