Javascript

Posts in this category.

Enable Navigation for Customer Insights - Journeys form

Nov 15, 2025

In Dynamics CRM products, I'm not sure why the Microsoft Product Team isn't enforcing the same UI languages across platforms. For example, in the Customer Insights - Journeys form, they decided to hide the Command and Navigation Bar. Because of this "initiative", it causes some...

Geolocation in Power Apps: Translating Addresses and Validating Check-Ins

Oct 11, 2025

Hi Everyone, I'm back, and today, we will learn how to implement translating addresses to longitude and latitude (using Azure Maps API) and validating check-ins. For example, there will be a plan for the Salesperson to go to location X for Customer A. On the day itself, the...

MDA: Fixing Add Existing Button in Associated GridView!

Sep 6, 2024

Have you ever wondered why we can't change the default view when clicking Add Existing in the Subgrid area on Model Driven Apps and at the same time you need to implement business logic to limit users to select the record based on a specific view (similar with this thread)? Fear...

MDA: Open Lookup in Side Pane

Aug 24, 2024

On the default mechanism of Lookup control on Model Driven Apps, once the user clicks the value, it will navigate to the record form. And since we already had Xrm.App.sidePanes, it will look interesting to change the default behavior and open the record in the side pane. So,...

Dataverse: Create an API to update Base Currency

Mar 23, 2024

This time, I've got a request from Trung Dũng Nguyễn where he wants to update the base currency based on the updated Currency inputted into the Transaction Currency table. When I check on the system behavior, the Currency (Base) information will be updated as long as we update at...

MDA: Learn Xrm.WebApi.executeMultiple

Mar 16, 2024

Back again with a deep dive series where we will learn about Xrm.WebApi.executeMultiple. The purpose of the function is to make batch requests (the real-world scenario is to make a bunch of CUD - Create/Update/Delete operations). Because this is a batch scenario, the performance...

MDA: Add confirmation and validation async onSave

Sep 15, 2023

I just learned that in Model Driven Apps (MDA), we can enable async OnSave handlers. Why does it matter? The simple answer is the majority of the API(s) around it also changes to become async as well. For example, in certain conditions of the record, we want to show confirmation...

MDA: Open Lookup Record In SidePane

Jul 22, 2023

I've got a request from my friend about how to implement opening a lookup in the side pane. For this requirement, we must implement the addOnLookupTagClick, the createPane, and the navigate functions. Without further ado, let's see how to do it! First, we will use the Task table...