Title: Filtering Attributes with Plugins Registered on Create and Update Message - Dynamics 365 CE
In the world of Dynamics 365 Customer Engagement (CE) customization, plugins are your toolkit for customizing the business process. One of the hidden gems within this customization is the ability to filter attributes when registering your plugins. In this blog, we'll deep dive into the filtering attributes as you register your plugins.
To Learn more about Plugin Development: Follow:
Power of Filtering Attribute
Imagine being able to specify exactly which attributes your plugin will execute, right from the moment of registration.
Filtering Attribute empowers you to narrow down your trigger, ensuring that your plugin only runs when needed.
If no filtering attributes are set for a plug-in registration step, then the plug-in will execute every time an update message occurs for that event.
With the Latest version of Plugin Registration Tool, we can specify filtering attributes for plugins on Create message in Dataverse.
The Benefits of Filtering Attribute in Registration
Attribute filtering during plugin registration brings lots of advantages to your customization strategy:
1. Efficiency: Focus your plugin's actions on specific attributes, boosting processing efficiency.
2. Performance Optimization: Most plug-ins registered for an entity's update message do not need to execute on all updates. Usually, there is only a need to process certain logic when a specific attribute or attributes have changed. This Reduce the amount of custom code execution and improving overall system performance.
Step-by-Step Guide: Filtering Attributes during Plugin Registration
Step 1: Identify Attributes: Determine the attributes that align with your plugin's purpose and customization objectives.
Step 2: Plugin Registration: When registering your plugin in the Dynamics 365 CE environment, specify the attributes using the appropriate configuration settings. For example, when using the Plugin Registration Tool:
- Select Message Create or Update (Create Message Filtering Attributes)
- Choose the entity for which you're registering the plugin.
- In the "Filtering Attributes" section, select the desired attributes that your plugin will work with.
Click on … dots button and select your desired attribute filtering. And Click OK.
Filtering Attribute on Create Message:
With the Latest version of Plugin Registration Tool, we can specify filtering attributes for plugins on Create message in Dataverse.
The following Plugin will only trigger when Create of an Account that has Email Id. You can have any attribute as filtering attributes selected based on your requirement.
Best Practices for Attribute Filtering in Plugin Registration
1. Be Selective: Choose attributes that are essential to your plugin's purpose, minimizing data transfer and processing.
2. Dynamic Configuration: If your attribute filtering requirements might change over time, ensure that your plugin registration can be adjusted accordingly.
Conclusion
Filtering attributes during Dynamics 365 CE plugin registration is like setting the stage for a precision performance.
As you continue to refine your plugin development skills, remember that attribute filtering during registration is your tool for early data refinement, ensuring that your plugin's actions align seamlessly with your CRM environment.
Stay tuned for more insights into the world of Dynamics 365 CE customization and Plugin Development.
#Dynamics365 #Development #Plugin #PowerApps #PowerPlatform
Next Steps: Learn more about other powerful features of Plugin!
No comments:
Post a Comment