Category Archives: Dynamics 365

How to Use setIsValid in Dynamics 365 for Effective Field Validation

In Dynamics 365, JavaScript plays a crucial role in customizing forms and enhancing the user experience. One useful function in D365 form scripting is “setIsValid()”, which allows developers to control field validation dynamically. In this blog post, we’ll explore a real-world business use case for “setIsValid()” and demonstrate how it can improve data integrity and… Read More »

Simplify Dynamics 365 Privileges with RetrieveUserSetOfPrivilegesByIdsRequest

Verifying user privileges in Dynamics 365, such as access to prvReadQuote for compliance or operational purposes, often involves identifying which users hold specific privileges. Initially, a complex FetchXML query was used to retrieve this data, but it posed significant challenges: The FetchXML was large, hard to maintain, and error-prone due to its multiple joins and… Read More »

Streamline Lead Qualification with The Sales Qualification Agent in Dynamics 365

In today’s competitive sales environment, equipping your team with the right tools can significantly contribute to success. One such powerful tool is the Sales Qualification Agent — a smart assistant designed to streamline prospect evaluation and outreach efforts. Before your sales team can fully leverage its capabilities, it’s crucial to lay the groundwork through proper… Read More »

Retrieving Masked Field Values Programmatically in Dynamics 365

Are you working on a Dynamics 365 Customer Engagement (CE) project and struggling to integrate a payment system that requires access to sensitive data—like a customer’s full bank account number? You’re not alone. Imagine this: you’re developing with backend plugins, operating under elevated privileges, and fully expecting the System Admin service to give you unrestricted… Read More »

Using Aggregate Functions with QueryExpression in Dynamics 365

Introduction In Microsoft Dataverse (Power Apps), there is often a need to retrieve summarized or aggregated data, such as counts, averages, sums, minimums, or maximums, rather than retrieving every individual record. Traditional query methods using QueryExpression focus on row-level data retrieval and do not inherently support aggregate functions. This creates challenges for developers who need… Read More »

Enhance File Management with the Attachment Control in Dynamics 365

Managing customer interactions efficiently requires having all related information, documents, screenshots, and other supporting files, readily accessible. One way to streamline this process in Dynamics 365 is by leveraging the Attachment Control component on forms. The Attachment Control is a powerful UI component that allows customer service representatives (also called agents or service reps) to… Read More »

How to Programmatically Add Option Set Values in Dynamics 365 with Power Automate

In every Dynamics 365 or Power Apps implementation, it’s common to require fields where users select values from predefined lists—such as Job Title, Customer Category, Priority, or Region. These lists are typically implemented using Choice fields (Option Sets) or custom Lookup fields referencing separate entities. A common challenge when configuring Option Sets in Dynamics 365… Read More »

Impersonating a User in Dynamics 365 Via ServiceClient Or CrmServiceClient

In Dynamics 365, impersonation allows actions to be performed on behalf of another user, enabling more flexible and secure workflows. For instance, when automating business processes like case assignments, it’s important to ensure that the actions are attributed to the appropriate user rather than a system account. Impersonation ensures the integrity of audit logs, preserves… Read More »

Speed Up Form Filling in Dynamics 365 with Copilot’s Files and Form Fill Assist Toolbar

Introduction: In today’s fast-paced work environment, entering customer details manually into CRM can be time-consuming and repetitive. It often takes focus away from what matters—helping customers and closing deals. Small tasks like typing in names, phone numbers, or company info from a business card can add up quickly, especially when handling multiple inquiries. To solve… Read More »