-
Recent Posts
Archives
Categories
Meta
Category Archives: Java Script
Generate the Word Document in JavaScript using Word Templates
Pre-Requisites: Add XRMServiceToolKit Library (Click Here) Add Process Helper Library (Click Here) Follow the Steps below. //Fetch XML for Getting the ID of Document Template var templateName = “Testing Template”; var fetchXml = “<fetch version=’1.0′ output-format=’xml-platform’ mapping=’logical’ distinct=’false’>” + “<entity … Continue reading
Posted in CRM, Dynamics 365, Java Script, JavaScript, Ms Dynamics CRM 2013, MS Dynamics CRM 2015, MS Dynamics CRM 2016
Tagged CRM, CRM 2016, CRM Solution, Document, Documents, Dynamics CRM, Dynamics CRM 365, Generate, Generate Word Documents, Gereate the Word Templates, JavaScript, MS Dynamics, MS Dynamics 2016, MS Dynamics 365, MS Dynamics CRM 2016, Template, Templates, Word, Word Document, Word Templates
Leave a comment
Restrict Lookup Types for Regarding Lookup on Activities
With the following couple of lines of code, we can easily restrict the Lookup Types in Lookup Dialog. var regarding = Xrm.Page.getAttribute(“regardingobjectid”); regarding.setLookupTypes([“account”,”contact”]);
Posted in CRM, Java Script, Ms Dynamics CRM 2013, MS Dynamics CRM 2015, MS Dynamics CRM 2016
Tagged block other entities on lookup dialog, Can I restrict a lookup field to specific record types, CRM 2016, Customer, display entities in lookup dialog, Display specific lookup types, Lookup, lookup dialog, LookupTypes, MS CRM 2016, MS Dynamics CRM 2016, restrict customer lookup entities, restrict lookup types, restrict ragarding lookup entities, Set default lookup types, setLookupTypes
2 Comments
Re-Activate Case Plugin
If Case is getting Re-Activated and need to perform some logic. Following is the Code snippet. It should be registered on both messages i.e. SetState and SetStateDynamicEntity. IPluginExecutionContext context = (IPluginExecutionContext)serviceProvider.GetService(typeof(IPluginExecutionContext)); if (context.InputParameters.Contains(“EntityMoniker”) && context.InputParameters[“EntityMoniker”] is EntityReference) { EntityReference entity … Continue reading
Resolve Case without Case Resolution Dialog
Resolve Case without case Resolution dialog pop-up: Create a Boolean attribute, place it on form and set visible false. Create a Ribbon Command on Case using Ribbon Workbench. Create a client side script (java script) to update the Boolean flag … Continue reading
Posted in CRM, Java Script, Ms Dynamics CRM 2013, MS Dynamics CRM 2015
2 Comments
Save, Resolve the Case and Refresh the Form
//Save the Form Xrm.Page.data.entity.save(); //Build Request – Here the Status would be “Resolved” and Status Reason is 5 i.e. Problem Solved Pass Entity ID var request = “<s:Envelope xmlns:s=’http://schemas.xmlsoap.org/soap/envelope/’>” + ” <s:Body>” + ” <Execute xmlns=’http://schemas.microsoft.com/xrm/2011/Contracts/Services’ xmlns:i=’http://www.w3.org/2001/XMLSchema-instance’>” + ” <request … Continue reading
Posted in CRM, Java Script, Ms Dynamics CRM 2013, MS Dynamics CRM 2015
1 Comment