how to retireve entity images using ODATA REST method RRS feed

  • Question

  • Hi guys,

    Is there any way to retrieve entity images by directly querying crm entityimage field using odata? I am trying to create a project siena app to retrieve information from crm. I'm able to retrieve all the fields by direct odata url call. But i'm stuck in retrieving entity images with odata url call. Any help is appreciated

    If my response answered your question, please "mark the response as an answer" and also "vote as helpful". Regards, Hari. www.crm2011byhari.blogspot.com

    Friday, August 15, 2014 10:55 AM


  • On Some Entities(Contact,Account,Lead)and custom Entities there is Attribute of "Entity Image"
    you can call it using Odata by adding this entity image attribute Schema in you entity
    http://<crm address>/XRMServices/2011/OrganizationData.svc/contact?$filter=Name eq test&$select=Name,Entity Image,Content

    Or may be possibility is image is save as byte data in Web resource so you have to call web resource to get Image data as

    http://<crm address>/XRMServices/2011/OrganizationData.svc/WebResourceSet?$filter=Name eq ‘ts_myPicture.jpg’&$select=Name,Content

    Muhammad Sohail

    Monday, August 18, 2014 7:12 AM