Hi, we are using k2 blackpearl. i would like to call K2 Workflow from CRM 2011 workflow and pass datafields to K2 workflow.
Please help on this error or suggest alternative way to call K2 Workflow.
When CRM workflow is running i am getting following error.
Workflow paused due to error: Unhandled Exception: System.IO.FileNotFoundException: Could not load file or assembly 'SourceCode.HostClientAPI, Version=4.0.0.0, Culture=neutral, PublicKeyToken=16a2c5aaaa1b130d' or one of its dependencies. The system cannot find the file specified.
Here is code for calling K2 workflow used in CRM Workflow:
Connection connection = new Connection();
connection.Open(_serverName, connectionString.ToString());
ProcessInstance processInstance = connection.CreateProcessInstance(_processName);
processInstance.DataFieldsd"accountid"].Value = accountid;
processInstance.Folio = _processFolio + System.DateTime.Today.ToString();
connection.StartProcessInstance(processInstance,false);
connection.Close();
Thanks for your time.