Quantcast
Channel: Microsoft Dynamics CRM
Viewing all articles
Browse latest Browse all 154803

Forum Post: RE: How to get count of records of say contact entity using C#

$
0
0
It throws a Nullreferenceexception just at the line :EntityCollection results = _service.RetrieveMultiple(fetch); I am trying to code this inside button event, can that be the cause? private void btnUpdate_Click(object sender, EventArgs e) { string fetchXml = @" ------------- ------------------ "; FetchExpression fetch = new FetchExpression(fetchXml); EntityCollection results = _service.RetrieveMultiple(fetch); throw new InvalidPluginExecutionException("Count of Records: "+results.Entities.Count);

Viewing all articles
Browse latest Browse all 154803

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>