Hi, I am developing an application using c# (asp.net) for the crm. And my problem is, I can retrieve list of account when I try create a case.
Someone can help me ? please !
*This post is locked for comments

Hi, I am developing an application using c# (asp.net) for the crm. And my problem is, I can retrieve list of account when I try create a case.
Someone can help me ? please !
*This post is locked for comments
Hi
You can use fetchXml or queryexpression.
string Fetch = @"<fetch version='1.0' output-format='xml-platform' mapping='logical' distinct='false'>
<entity name='account'>
<attribute name='name' />
<attribute name='primarycontactid' />
<attribute name='telephone1' />
<attribute name='accountid' />
<order attribute='name' descending='false' />
</entity>
</fetch>";
EntityCollection accountEntityCollection= Service.RetrieveMultiple(new FetchExpression(Fetch));
#endregion
if (accountEntityCollection.Entities.Count > 0)
{ int count = accountEntityCollection.Entities.Count ; }
Hope it helps
Thanks