Tag Archives: MS Dynamics 2016

Reading Excel and Creating the Records in CRM


Install the following Packages Reference the DLLs Use the following Code: var filePath = @”D:\CRM\records.xlsx”;                 using (var stream = File.Open(filePath, FileMode.Open, FileAccess.Read))                 {                     // Auto-detect format, supports:                     using (var reader = ExcelReaderFactory.CreateReader(stream))                     {                         do … Continue reading

Posted in CRM, Dynamics 365, MS Dynamics 365, MS Dynamics CRM 2015, MS Dynamics CRM 2016 | Tagged , , , , , , , , , | Leave a comment

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 , , , , , , , , , , , , , , , , , , , | Leave a comment