Posts

Showing posts from November, 2024

Set up Power Platform Managed Identities for Dataverse Plugins

Image
Setting Up Power Platform Managed Identities for Dataverse Plugins In this blog, we'll walk through how to configure Power Platform Managed Identities specifically for Dataverse plugins. But first, let's establish a clear understanding of what Power Platform Managed Identities are and why they're useful. What Are Power Platform Managed Identities? Power Platform Managed Identities (currently in preview) enable seamless and secure connections between Dataverse plugins and Azure resources that support Azure Managed Identities. This eliminates the need for manually managing sensitive credentials, like client secrets. Why Use Managed Identities Instead of Client Credentials? Managed Identities simplify authentication and bolster security in several ways: Credential Management : They reduce or eliminate the need for storing and rotating client secrets. Enhanced Security : By minimizing exposure, the attack surface for malicious threats is reduced. Seamless Authentication : They ...

FormLoaded event - Dynamics 365

In Dynamics 365, the Form OnLoad event is a common method for initiating code when a form loads. However, relying solely on this event has drawbacks, such as potential data inconsistency or slower performance, especially when making external API calls. For example, if you use OnLoad to fetch data from a third-party service and perform operations on it, the data might not be fully loaded when needed, leading to delays or errors. To address these issues, Microsoft introduced the Form Loaded event, which occurs only after the form has completed loading. This event lets you delay non-essential logic, like API calls or field population, until the form is fully ready. By moving complex operations to the Form Loaded event, you can optimize loading times and enhance data reliability. To use this event, you register code via formContext.ui. addLoaded and formContext.ui. removeLoaded . Here’s an example to illustrate: function onFormLoad ( executionContext ) { const formContext = execu...