Create or Insert image in MSCRM 2013

First you need to get the service object

to get service object follow the below link:
http://raju2565.blogspot.in/2014/07/mscrm-online-authentication.html

copy and paste the below code in console application.

        Entity imageEntity1 = new Entity("account");
        imageEntity1["name"] = "144x144.png";
        imageEntity1["entityimage"] = File.ReadAllBytes("Images\\144x144.png");
        Guid imageEntity1Id = service.Create(imageEntity1);



Comments

Popular posts from this blog

Connecting Dynamics 365 Web api using external HTML page

Get azure blob files inside Sub Directories

Interview questions on MS CRM