locked
SDK.REST.retrieveMultipleRecords not working on a Custom Entity RRS feed

  • Question

  • The SDK will not work on a custom entity:

    SDK.REST.retrieveMultipleRecords("new_emailDetails", options, emailDetailsCallBack, function (error) { errorHandler(error, options); }, retrieveComplete);

    I get no errors and the results are empty, but the URL is working:

    XRMServices/2011/OrganizationData.svc/new_emailDetails?$select=new_importerrorId,CreatedBy,statecode,new_TableName,new_ErrorMessage,new_Subject,new_Contact,new_ContactId,new_EmailList,new_Email,new_Fax,new_AccountIds&filter=(new_importerrorId%20eq%20guid%271e5516b2-7b13-e11-b6e2-005056b96458%27%20and%20statecode/Value%20eq%200)

    Tuesday, June 16, 2015 6:11 PM

All replies

  • Looks like the issue is with your filter. Assuming new_importerrorId is a lookup field, the condition should be in the form:

    new_importerrorId/Id eq (guid'271e5516b2-7b13-e11-b6e2-005056b96458')


    Microsoft CRM MVP - http://mscrmuk.blogspot.com/ http://www.excitation.co.uk

    Wednesday, June 17, 2015 8:25 AM
    Moderator
  • David,

    Thank you for the response.  The URL string works as is, however I also tried "/Id" and got an "Error: 400: Bad Request. No property 'Id' exists in type 'System.Guid' at position 19. 

    Wednesday, June 17, 2015 2:08 PM
  • Hi,

    Should the URL not be XRMServices/2011/OrganizationData.svc/new_emailDetailsSet?

    Friday, June 19, 2015 8:18 AM
  • CRMizer,

    I changed the name in the URL (it does work) to post to the site, but the name does contain "SET".

    Monday, June 22, 2015 8:47 PM