Error while converting CRM 4.0 plugin into CRM 2011?

Answered Error while converting CRM 4.0 plugin into CRM 2011?

  • Monday, 6 June 2011 2:41 PM
     
      Has Code

    Dear All,

               I am getting following errors

            

    CRMServices.QueryExpression query = new CRMServices.QueryExpression();
        query.EntityName = entityName;
        query.ColumnSet = new AllColumns();
        query.Criteria = filter;
    
        //I am getting Error below
        BusinessEntityCollection ret = service.RetrieveMultiple(query);
        return ret;
    

                Error 4 Argument 1: cannot convert from 'CRMServices.QueryExpression' to 'Microsoft.Xrm.Sdk.Query.QueryBase' 

               Error 3 The best overloaded method match for 'Microsoft.Xrm.Sdk.IOrganizationService.RetrieveMultiple(Microsoft.Xrm.Sdk.Query.QueryBase)' has some invalid              arguments 

    Can you please help me out.

    Thanks and Regards,

    Yusuf

     

     

All Replies