Hi All,
I created a workitem through CSharp API. It is working fine. After I created the workitem i want to search the workitem throuch CSharp API code.
During the work item creation, I am setting some alpha numeric value(eg : 17457acf-e60a-e111-9ed6-00155d50c10b) to Folio data field.
The following code I am using to search the woek item in the K2 server.
WorklistCriteria workListCriteria = new WorklistCriteria();
Worklist workList;
workListCriteria.AddFilterField(
WCField.ProcessFullName,WCCompare.Like,SPA_Demo1Demo1);
workListCriteria.AddFilterField(
WCField.ProcessFolio, WCCompare.Like, "17457acf-e60a-e111-9ed6-00155d50c10b");
workList = conn.OpenWorklist(workListCriteria);
SPA_Demo1 is the Project name and Demo1 is the Workflow name.
After running this program I am not getting any workitem in the workList object, the count is always zero. But I can able to see the workitem in the K2Workspace Instance window.
Please help me to resolve this issue.