Anyone knows how to get items with customquery in C#? using PTC web service
Hi I am struggling to get items with getItemsByCustomQuery
Please find below code,
MKSService.getItemsByCustomQuery cusQ = new getItemsByCustomQuery();
MksIntegration.MKSService.CustomQuery qry = new CustomQuery();
MKSService.Integrity_2009Client cl = new Integrity_2009Client();
string DateStr = "2014-10-29";
qry.QueryDefinition = "Modified Date = " + DateStr;
qry.Username = "XXXXXX";
qry.Password = "XXXXXX";
string[] field1 = new string[] { "id", "Summary", "Modified Date" }; //
qry.InputField = field1;
cusQ.arg0 = qry;
getItemsByCustomQueryResponse qryRes = new getItemsByCustomQueryResponse();
qryRes = cl.getItemsByCustomQuery(cusQ);
Appreciate your response
Thanks
