Hi,
I know its a silly to change but try if it is related to coding syntax
public EntityCollection RetrieveQuoteItem(IOrganizationService service, Guid quoteid)
{
QueryExpression query = new QueryExpression("quotedetail");
query.ColumnSet = new ColumnSet("quoteid", "productid","quotedetailid");
query.Criteria.AddCondition("quoteid", ConditionOperator.Equal, quoteid);
EntityCollection results = service.RetrieveMultiple(query);
return results;
}
OR
public EntityCollection RetrieveQuoteItem(IOrganizationService service, Guid quoteid)
{
string fetchXmlString = @"<fetch version='1.0' output-format='xml-platform' mapping='logical' distinct='true'>
<entity name='quotedetail'>
<attribute name='productid'/>
<attribute name='quotedetailid'/>
<attribute name='quoteid'/>
<order descending='false' attribute='productid'/>
<filter type='and'>
<condition attribute='quoteid' value='{0}' operator='eq'/>
</filter>
</entity>
</fetch>";
string formatXml = string.Format(fetchXml, userid.ToString());
// Executing fetchxml using RetrieveMultiple method
EntityCollection results = service.RetrieveMultiple(new FetchExpression(formatXml));
return results;
}
if it doesn't work might have some other issue and also please check first on advanced find that particular quote have product or not?