Filtering Users Based on Their Team in Dynamics 365 Using JavaScript

When working in Dynamics 365 or Power Apps model-driven apps, it’s common to have forms where you want to restrict a lookup field so it only shows relevant records. A typical scenario is filtering the “User” lookup field to only display users who belong to a specific Team. In this post, we’ll walk through how…

🚫 Fixing “Future Date” Validation Errors in Power Apps (Even for Today’s Date!) 

📌 Problem We Faced:  We had a custom JavaScript validation in our Power Apps Model-Driven form. The goal was simple: 👉 Show an error if the user enters a future date.  We used this script:  if(fieldValue && fieldValue > today) { showerror } At first, it worked fine. But then… 💥 in some systems, even when…

Variables vs Compose in Power Automate: What’s the Difference and When to Use?

When building Power Automate flows, two commonly used actions for storing data are: Initialize/Set Variable Compose 🧠 What is a Variable? A variable is a mutable container — which means you can change or update its value after it's created. You must initialize a variable with a specific datatype like String, Boolean, Integer, Array, or…

Populate Lookup fields and Text fields from an Entity to Another Entity using JavaScript – Dynamics 365 CRM

There are cases where we need to set a lookup field on a Dynamics 365 or Power Apps, where we want to retrieve value of lookup fields or Text fields on the form using JavaScript and set to other entities form fields. SCENARIO: In our case we are having entities like 'Account' and 'Lead', where…

Show or Hide Tab Based on Field Value Using JavaScript in Dynamics 365 CRM

JavaScript is an essential part of modern web development. It is used to create interactive and dynamic websites, allowing for better user engagement and interaction. It runs on the user’s browser rather than the server, allowing for faster loading speeds and content manipulation without requiring a page to be reloaded. REQUIREMENT: In this case the…

Update multiple records using custom button

In Dynamics 365, it very common that a larger number of records need to be approved or a similar action need to be done. In these scenarios going to each record and performing the necessary action will not be a better option. To tackle these situations, custom buttons can be used. After selecting the records…

How to Call a Custom Page from Button Click in Model-Driven App

The usage of buttons in model-driven apps helps in easy navigation from one table to other tables or custom pages without even leaving the respective forms. Ribbon workbench is an efficient tool used for the same. This blog guides you through, how to call a custom page as a central dialog box inside the account…

Show and Hide Subgrid Based on Field Value Using JavaScript in MS Dynamics 365 CRM

JavaScript is an important tool used in Microsoft Platforms to interact with entity forms and is executed for events that occur on the form. JavaScript form customizations is one of the best options needed to control business processes. One of the benefits of JavaScript Form programming is that they are immediate and doesn’t need data…

Dynamics 365 form level notification using JavaScript

The model-driven app and Microsoft Dynamics 365 do have inbuilt customizations up to a great extent. But for more specific customizations JavaScript is a much better tool. Here is an example of form level notifications applied to a form. The notification options available at form-level are: Error, Warning and Information. These notification options have different…

How to set and clear field notification in CRM 2013 using JScript – CRM 2013 Feature

There is a new client API  feature introduced in CRM 2013 – Setting Form and Field level notifications through Jscript. Let’s have a look at how to set notification on a field on Account form. The requirement is to check and notify if Phone field on the account form is empty. Sample Code has been added…

How to set form notification in CRM 2013 using JScript – CRM 2013 Feature

There is a new client API  feature introduced in CRM 2013 – Setting Form and Field level notifications through Jscript. Let’s have a look at how to set the form notification on the Account form. We will be using the new Xrm.page.ui.setFormNotitication() method to achieve this. Xrm.Page.ui.setFormNotification(message, level, uniqueId); Parameters message | Type: String. The text…