Hi Experts,
I am getting error while using look up text as input value instead of GUID.
And I am getting error
" Expected type of attribute value: System.Guid. Exception raised: Guid should contain 32 digits with 4 dashes (xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx)."
My requirement is to import data from Excel and I am checking if value exists in CRM before creating a record with data from excel as below.
Below is my code:
String query = @"<fetch distinct='true' mapping='logical' output-format='xml-platform' version='1.0'>
<entity name='lead'>
<attribute name='fullname'/>
<attribute name='companyname'/>
<attribute name='telephone1'/>
<attribute name='leadid'/>
<order descending='false' attribute='fullname'/>
<filter type='and'>
<condition attribute='new_projectnameid' operator='eq' value='Aparna Cyberlife'/>
</filter>
</entity>
</fetch>";
EntityCollection results = service.RetrieveMultiple(new FetchExpression(query));
Can you please tell me how to do it...
Thanks.
*This post is locked for comments
I have the same question (0)