• Home
  • About Us
  • Contact Us
  • Privacy Policy
  • Special Offers
Business Intelligence Info
  • Business Intelligence
    • BI News and Info
    • Big Data
    • Mobile and Cloud
    • Self-Service BI
  • CRM
    • CRM News and Info
    • InfusionSoft
    • Microsoft Dynamics CRM
    • NetSuite
    • OnContact
    • Salesforce
    • Workbooks
  • Data Mining
    • Pentaho
    • Sisense
    • Tableau
    • TIBCO Spotfire
  • Data Warehousing
    • DWH News and Info
    • IBM DB2
    • Microsoft SQL Server
    • Oracle
    • Teradata
  • Predictive Analytics
    • FICO
    • KNIME
    • Mathematica
    • Matlab
    • Minitab
    • RapidMiner
    • Revolution
    • SAP
    • SAS/SPSS
  • Humor

Dynamics 365 Portals – Leverage Liquid and Java Script Custom Code to Enhance Portal Capabilities

October 3, 2019   Microsoft Dynamics CRM
crmnav Dynamics 365 Portals – Leverage Liquid and Java Script Custom Code to Enhance Portal Capabilities

Dynamics 365 Portals

Dynamics 365 Portals offer a great way to enhance customer experience by extending some CRM configurations directly to the customer.  There comes a time when you may want your portal to perform some action that is beyond the out-of-the-box functionality.  Extending portal functionality often requires custom Java Script and or Liquid code.  Get familiar with some of the basic understandings of these two programming languages using this guide.

Liquid Code

Liquid code runs server-side- meaning that this code works great for making queries back to Dynamics to deliver data or perform an action.  Suppose you want to display some information from a parent record on the current record that a user is viewing from the portal.  You can use Liquid Code to define the field on the parent entity as a liquid object, and display the object on the web page.  Code like this is often times implemented on the Web Template portal entity.  Web Templates are used to structure and display data in particular ways for all Web Pages that utilize that Web Template.

Java Script

Java Script comes in handy when you want to improve the user-experience, but not always the best option to meet a business process’s needs, as Java Script can be subverted.  Want to hide/show a field on a portal page based on another field’s value? This is precisely where Java Script should be implemented.  It doesn’t stop there, though.  Use this code to pre-populate fields, hide/show sections and tabs, send an alert to a user, lock down fields, even make collapsible tabs!  Java Script is most commonly used as a way to mimic Dynamics 365’s Business Rules.  Implement this style of code of Web Forms, Entity Forms, Entity Form Metadata, and Web Templates.

Using Liquid and Java Script in conjunction

It is possible to use these two styles of code on the same portal component, within the same script.  Be aware though, that this method will not work in some cases.  For example, say you have a Java Script block of code that looks for a change of a field, and you want to execute a block of Liquid code when that field changes.  While this type of code could prove useful, it’s not possible, as Liquid runs server-side and cannot run after a web page has already been loaded on a browser.

Contact us!

Beringer Technology Group is always here to provide expert knowledge in topics like these. Contact us with any questions that you may have!

Beringer Technology Group, a leading Microsoft Gold Certified Partner specializing in Microsoft Dynamics 365 and CRM for Distribution. We also provide expert Managed IT Services, Backup and Disaster Recovery, Cloud Based Computing and Unified Communication Solutions.

Let’s block ads! (Why?)

CRM Software Blog | Dynamics 365

Capabilities, Code, Custom, Dynamics, Enhance, Java, Leverage, Liquid, Portal, Portals, script
  • Recent Posts

    • WHEN IDEOLOGY TRUMPS TRUTH
    • New Customer Experience Needs and Commerce Trends for 2021
    • A data transformation problem in SQL and Scala: Dovetailing declarative solutions
    • George Wallace Joins Laverne Cox For Comedy Titled ‘Clean Slate’
    • How Microsoft Azure DevOps and Dynamics 365 CRM Work Together to Improve Service Responsiveness
  • Categories

  • Archives

    • February 2021
    • January 2021
    • December 2020
    • November 2020
    • October 2020
    • September 2020
    • August 2020
    • July 2020
    • June 2020
    • May 2020
    • April 2020
    • March 2020
    • February 2020
    • January 2020
    • December 2019
    • November 2019
    • October 2019
    • September 2019
    • August 2019
    • July 2019
    • June 2019
    • May 2019
    • April 2019
    • March 2019
    • February 2019
    • January 2019
    • December 2018
    • November 2018
    • October 2018
    • September 2018
    • August 2018
    • July 2018
    • June 2018
    • May 2018
    • April 2018
    • March 2018
    • February 2018
    • January 2018
    • December 2017
    • November 2017
    • October 2017
    • September 2017
    • August 2017
    • July 2017
    • June 2017
    • May 2017
    • April 2017
    • March 2017
    • February 2017
    • January 2017
    • December 2016
    • November 2016
    • October 2016
    • September 2016
    • August 2016
    • July 2016
    • June 2016
    • May 2016
    • April 2016
    • March 2016
    • February 2016
    • January 2016
    • December 2015
    • November 2015
    • October 2015
    • September 2015
    • August 2015
    • July 2015
    • June 2015
    • May 2015
    • April 2015
    • March 2015
    • February 2015
    • January 2015
    • December 2014
    • November 2014
© 2021 Business Intelligence Info
Power BI Training | G Com Solutions Limited