Latest posts
-
Dynamics 365 – Retrieve Records using JavaScript
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. Read more
-
Dynamics 365 – Update Records with JavaScript
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. Read more
-
Dynamics 365 – How to Open Forms and Views with a URL | Xrm.Navigation.navigateTo
Dynamics 365 enables the use of URLs to open specific actions or data. Constructing the URL involves parameters like app, pagetype, etn, id, and extraqs. It’s important to use appropriate methods when opening forms programmatically. Customizing the application navigation using the site map requires careful handling to avoid unexpected outcomes. Read more
-
Dynamics 365 – How to call a function on form save
This post explains the save event in Dynamics 365 CRM, its importance, and how to add custom logic using the formContext.data.entity.addOnSave() method. It discusses a use case for validating fields before saving a record and provides a code example. Customizing the onSave function offers developers the opportunity to enforce business rules and enhance Dynamics 365. Read more
-
How and When to Force React Re-Render
React provides a powerful mechanism called “rerendering” to update user interfaces based on component state, props, or context. There are scenarios where you need to force rerenders, such as external event changes, performance optimization, and third-party integration. Practical use cases include dynamic UI updates, conditional rendering, and animation effects, which can be achieved through code… Read more
-
Asynchronous Programming in JavaScript – Callbacks, Promises, & Async/Await Examples
Asynchronous programming in JavaScript is crucial for tasks with variable completion times. While callbacks were traditionally used, Promises and async/await now offer more elegant solutions. Promises provide better readability and error handling, while async/await makes code appear synchronous for improved maintainability. Understanding these techniques is essential for efficient JavaScript coding. Read more