-
The OnSave event in Dynamics 365 allows developers to implement custom business logic and data validation before saving. By adding a custom function, such as validateOpportunityScoreOnSave, developers can ensure data integrity and accuracy. This event occurs when the user saves or refreshes the form, leaves with unsaved data, or when the AutoSave option triggers.
-
The recent release of the Microsoft.PowerPlatform.Dataverse.Client introduces the ServiceClient class, offering a modern approach to connect to Dynamics 365 web service. It supports .NET Core and .NET 5, utilizing Microsoft.Identity.Client for improved security, performance, and reliability compared to the CrmServiceClient class. This advancement enhances developer proficiency and potential.
-
This blog post demonstrates how to set column values using parameters passed to a form in Dynamics 365 using client API. It explains the syntax for passing parameters in the URL and the Xrm.Navigation.openForm method. Additionally, it details setting values for various column types and emphasizes the user experience improvement.
-
The post explains how to use the formContext.getAttribute(arg).getIsDirty() web API to check for unsaved changes in column values of a record. It provides examples of using the method for different types of attributes and suggests actions based on the state of the column. The API is a valuable tool for customizing form behavior.
-
The post discusses how to retrieve records in CRM using Xrm.WebApi.retrieveRecord(). This method allows fetching a single record by ID and entity name, with options to specify attributes and relationships in the response. Code examples demonstrate retrieving records with all attributes, specific attributes, and related records. The post emphasizes handling success and error callbacks.
-
The blog post explains the usage of Xrm.WebApi.updateRecord() method in Dynamics 365. It covers the method’s syntax, parameters, success and error callbacks, and provides code examples for updating different types of fields. Use cases include changing record owners, updating option set and multi-select option set fields.