Posts

Showing posts from February, 2022

PL 400 : register custom assemblies by using the Plug-in Registration Tool (Create a plug-in)

Image
Being a cricket lover, let me explain, the plug-in registration tool is like a bat in the playground of plugin development. Without this tool, developers cannot use and take advantage of the plugin capabilities. In a cloud environment, this tool helps in registering custom assemblies, but also debugging plugin code. In other words, the Plug-in Registration Tool is an essential tool for the extensibility of the Microsoft Dataverse platform. The Plugin Registration tool is used to register specific messages for the plug-in to run under the execution pipeline. Developers can download here to Plugin Registration tool and register the plugin with below steps: Double click on pluginRegistration.exe in the Dynamics 365 SDK folder. Select Create new Connection Because we are going to register on cloud, so we need to select Microsoft 365 and select the Show Advanced check box and enter the credentials and then Login. Select Register and then select Register New Assembly Select Browse Browser to

PL 400 : optimize plug-in performance (Create a plug-in)

Image
Microsoft Dataverse has a plugin power tool that gives the ability to enhance the behavior of the platform. Microsoft recommends using this tool when all other out of the box functionalities do not work to meet business requirements. A well written plugin gives Optima performance but a poorly written plugin environment can have a significant impact on performance, so it is common advice for developers to write optimized code. Optimization is the set of best practices and standards that developers use to make software code run efficiently. In customer-relationship applications, poor performance can lead to even bigger problems. Instead of helping our customers do business with the company and build a competitive advantage, the software application frustrates  them. They may try to reload the page, causing even more problems and delays for the application. Application performance can directly affect company metrics such as employee performance and productivity. I collected some best prac

PL 400 : perform operations on data by using the Organization service API (Create a plug-in)

Image
Data handling is an essential activity in all organizations. All organizations try to conduct CRUD operations with a variety of technologies. Undoubtedly, a plugin is a powerful tool for manipulating or extending the Microsoft Dataverse platform, but the organization service plays an important role for data operations. Microsoft provides developers to take advantage of the web service at no extra cost. There are many web services that help the developer with particular custom logic or a custom interface for the programmatic implementation of the application, while controlling the back end business processes, security and auditing. Organization service is one of two web services we can use to work with data and table and column definition in Dataverse. The other is the Web API. Microsoft Dataverse uses the Common Service-Oriented Architecture (SOA) concept for extensibility, which involves implementing a series of web services to provide extensibility support. By using these web service

PL 400 : implement business logic by using pre-images and post-images (Create a plug-in)

Image
 The Plugin execution framework is closed environment, so it works with certain rules and conditions. Pre-image and Post Image are special concept for plugin developer. In the several business conditions, developer needs manipulate the pre and post values during the event execution framework. Images are snapshots of the table's columns, before and after the core operation system. Pre-Image : A pre-image is a snapshot of the table's columns before the core operation. Post-Image: A post-image is a snapshot of the table's columns after the core operation. Images are useful for update operation, they help us determine the original value of a field before a user fired an update operation. Microsoft Dataverse populates the pre-entity and post entity images based on the security privileges of the impersonated system user. Only table columns that are set to a value or are null are available in the pre or post table images.

PL 400 : debug and troubleshoot a plug-in (Create a plug-in)

Image
Generally, developing a plugin requires special skills, after development, registering the appropriate stage is also a challenge, but in the Dynamics CE world, debugging and troubleshooting is highly challenging and developers always love such adventures.  Debug and troubleshooting are two different activities, debugging is the process of detecting and removing potential error commonly called bugs. Sometimes, both the words are interchangeable. Troubleshooting can be procedural identification and prevention of potential issues. Plugin registration tool plays an important role in plugin development and it also helps in debugging. If we need to debug Microsoft Dataverse plugin or plugin in production environment, we need to use Plugin Profiler. We can install Plugin Profiler from Plugin Registration Tool. After installation of Plugin Profiler, it will appear on the top header of the tool like below: When set the plugin profiler on the selected step, Profiler setting window will open like

PL 400 : design and develop a plug-in (Create a plug-in)

Image
Plugin is a managed code class that runs under the Event Execution Pipeline. Under the pipeline, the developer can manage the entire behavior of the platform as it includes the entire process data of the execution pipeline. If it is well written, the performance of the plugin is optima. The developer can leverage the org service and the external service in the code. The plugin is powerful and most productive. However, to write plugin code, the developer needs special skills and knowledge. A poorly written plugin can have a significant impact on platform performance. Basically, a plugin is just a .NET assembly that is implemented as the IPlugin interface, which can be found in the Microsoft.Crmsdk.CoreAssemblies NuGet package. The IPlugin interface exposes a single method, Execute, where we can place any custom logic. Use Plugin when a declarative process doesn't our requirement. Whenever a plugin is run, a stack of data is made available by the Microsoft Dataverse that contains inf

PL 400 : describe the plug-in execution pipeline (Create a plug-in)

Image
Data is the key component in the modern business and technology world, always finding a new technology for the storage and analysis process. Dataverse is one of the modern cloud storage service that provides secure data storage with logic and validation mechanism to prevent duplicate and unprocessed data and improve data quality. In other words, Dataverse is a cloud based storage service that use to securely store the business application data. Power apps and Dynamics 365 business application reside on the Dataverse and use it as storage and take advantages of rich server-side logic and validation to ensure data quality. With No/Low code, it also provides the extend the behavior of data platform. Plugin is developer tool which empower the developer to extend/modify the standard behavior. The Dynamics plugin is a custom business logic that integrates with the Microsoft Dataverse to modify or extend that standard behavior of the platform. When the declarative process of Dataverse does no

PL 400 : manage dependencies between JavaScript libraries (Create a command button function)

Image
JavaScript, along with HTML and CSS, is one of the major technologies of the World Wide Web. This script language defines the behavior of the hypertext mark language and helps in the beautification of the CSS web. JavaScript is a text-based language used both client-side and server-side which allows us to make web pages more interactive and dynamic. A JavaScript is a library of pre-written JavaScript code that allows for easier development of JavaScript-based applications, especially for AJAX and other Web-centric technologies : Wikipedia A JavaScript library is a collection of code or functions that developers can reuse and repurpose. Such a library contains various functions, methods, or objects to perform practical tasks on webpages or JS-based applications. Client scripting allows us to use JavaScript in Power Apps model-driven apps to implement custom business logic. Client scripting is run model-driven in response to form events. Web resources in Dynamics 365 are virtual files st