Posts

Showing posts from July, 2014

MSCRM Change Stage in Business Process Flow using javascript

Image
There is a possibility to change the stage using Java Script based on our requirement. Here is the sample.       If you are unable to find the processid and stageid,       1. Go to Advance Find       2. Add Opportunity       3.Add all columns or Process and Process Stage       4. Export to excel and find Process and Process Stage ID's     Code:         Xrm.Page.getAttribute("processid").setSubmitMode("always");         Xrm.Page.getAttribute("processid").setValue("35103457-a659-40c4-a07d-03a0288c8cc4");         Xrm.Page.getAttribute("stageid").setSubmitMode("always");         Xrm.Page.getAttribute("stageid").setValue("27523758-5e41-e30a-a7dd-e0b02b67b519");         //Call Entity save         Xrm.Page.data.entity.save();         //Call window...

Retrieve EntityImage url 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        Entity _account = new Entity("account");         //Retrieve and the records with just the url         string imageUrlQuery = String.Format(@"<fetch mapping='logical'>                           <entity name='{0}'>                             <attribute name='sample_name' />                             <attribute name='entityimage_url' />                           </entity>                          ...

Retrieve image from 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 Entity _account = new Entity("account");         string binaryImageQuery = String.Format(@"<fetch mapping='logical'>                                   <entity name='{0}'>                                     <attribute name='sample_name' />                                     <attribute name='entityimage' />                                   </entity>                       ...

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);

MSCRM online authentication

         try         {             ClientCredentials cre = new ClientCredentials();             cre.UserName.UserName = "your user name";             cre.UserName.Password = "your passwod";             Uri serviceUri = new Uri("your Organizationservice.svc");             OrganizationServiceProxy proxy = new OrganizationServiceProxy(serviceUri, null, cre, null);             proxy.EnableProxyTypes();             IOrganizationService _service = (IOrganizationService)proxy;                     }         catch (System.Web.Services.Protocols.SoapException ex)         {                   ...