Posted By

garnold on 03/22/11


Tagged

count record SalesLogix SData


Versions (?)

Getting a record count with SData


 / Published in: C#
 

  1. var service = new SDataService("http://localhost/sdata/slx/dynamic/-/", "admin", "");
  2. var request = new SDataResourceCollectionRequest(service)
  3. {
  4. ResourceKind = "contacts",
  5. Count = 0
  6. };
  7. var entry = request.Read();
  8. var total = entry.GetOpenSearchTotalResults();

Report this snippet  

You need to login to post a comment.