Posts

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)         {                   ...

Xrm.Utility Functions

Xrm.Utility Reference The Xrm.Utility object provides a container for useful functions not directly related to the current page. These functions are available in every application page that supports scripting. You can use them in form scripts or in ribbon commands. For HTML web resources, they are available when you include the ClientGlobalContext.js.aspx page. For more information, see   ClientGlobalContext.js.aspx . Functions The following table lists the functions of Xrm.Utility. Function Description openEntityForm Opens an entity form. openWebResource Opens an HTML web resource. openEntityForm Opens an entity form. Xrm.Utility.openEntityForm(name,id,parameters) Parameters ·          name Type : String Required : The logical name of an entity. ·          id Type : String Optional : The string representation of a unique ident...

Multiple check box in MSCRM 2011/2013

Use the below link for more detail explanation. http://tunemulticheckbox.codeplex.com/