Hi,
I am trying to create a very simple web service and I would like to filter on a boolean field "Active" before calling ReadMultiple. This keeps generating a SoapException: Id 0 was not found in Item object!
Any help would be greatly appreciated - thanks!
//Create a filter
List<PLU_Filter> plufilter = new List<PLU_Filter>();
//Filter on the NAV field - No
PLU_Filter noFilter = new PLU_Filter();
noFilter.Field = PLU_Fields.No;
noFilter.Criteria = "C*";
plufilter.Add(noFilter);
//You can setup multiple filters/search criteria
//Filter on the NAV field - Active
PLU_Filter activeFilter = new PLU_Filter();
activeFilter.Field = PLU_Fields.Active;
activeFilter.Criteria = "True";
plufilter.Add(activeFilter);
//Read the list into an array
PLU[] pluitemlist = pluservice.ReadMultiple(plufilter.ToArray(), null, 100);
0
Comments
There is everything all right in my case...