Introduction
When developing Dynamics 365 plugins, one of the most overlooked performance optimizations is the proper use of Filtering Attributes. Many developers register an Update plugin and assume it will execute only when relevant fields change. However, without filtering attributes configured, the plugin may execute on every update operation, even when the fields used by the business logic are completely unrelated.
This can lead to:
- Unnecessary plugin executions
- Increased server load
- Slower user experience
- Difficult-to-maintain solutions
- Higher chances of recursive execution issues
In this article, we’ll explore how Filtering Attributes work, how Dynamics 365 evaluates them, and the best practices for using them effectively.
What Are Filtering Attributes in Dynamics 365 Plugins?
Filtering Attributes allow developers to specify which attributes should trigger a plugin step during an Update operation.
Instead of executing the plugin for every update request, Dynamics 365 first checks whether any of the configured filtering attributes are present in the update request.
📚 Related Article
Filtering Attributes are evaluated during plugin execution and play an important role in determining whether a plugin step should run. If you’re new to plugin stages and execution flow, check out our detailed guide on Dynamics 365 Plugin Execution Pipeline.
For example, consider an Account table with the following fields:
- Name
- Phone
- Website
- Credit Limit
Suppose your plugin contains business logic that should execute only when the Credit Limit changes.
Without Filtering Attributes, the plugin executes whenever any field is updated.
With Filtering Attributes configured, the plugin executes only when the Credit Limit attribute is included in the update request.
Why Are Filtering Attributes Important?
Let’s consider a real-world scenario.
A plugin is registered on the Update message of the Account table.
The plugin calculates customer risk based on the Credit Limit field.
Without Filtering Attributes
The following actions all trigger the plugin:
User updates Name
↓
Plugin Executes
User updates Phone
↓
Plugin Executes
User updates Website
↓
Plugin Executes
User updates Email
↓
Plugin Executes
Even though the plugin only cares about Credit Limit, it executes every time.
This results in unnecessary processing and wasted resources.
With Filtering Attributes
The plugin step is configured with:
creditlimit
Now:
User updates Name
↓
Plugin Does Not Execute
User updates Phone
↓
Plugin Does Not Execute
User updates Credit Limit
↓
Plugin Executes
This significantly reduces unnecessary executions and improves overall system performance.

How Dynamics 365 Evaluates Filtering Attributes
This is one of the most misunderstood concepts in plugin development.
Many developers believe Filtering Attributes check whether a field value actually changed.
That is not entirely correct.
Dynamics 365 checks whether the attribute is present in the update request.
For example:
Entity account = new Entity("account");
account.Id = accountId;
account["creditlimit"] = new Money(10000);
service.Update(account);
Since the update request contains the Credit Limit attribute, a plugin step configured with:
creditlimit
will execute.
Important: Attribute Presence vs Value Change
Filtering Attributes do not verify whether the value actually changed.
Consider the following example:
Entity account = new Entity("account");
account.Id = accountId;
account["creditlimit"] = existingCreditLimit;
service.Update(account);
Even though the value remains the same, the attribute is still included in the update request.
As a result:
Filtering Attribute Found
↓
Plugin Executes
This is why Filtering Attributes should always be combined with proper business logic checks.
📚 Related Article
To accurately determine whether a value has actually changed, developers often use Pre Images and Post Images instead of relying solely on Filtering Attributes. Learn more in our guide on Pre Image vs Post Image in Dynamics 365.
A common approach is to compare the old and new values before performing any processing.
What Happens When No Filtering Attributes Are Configured?
When no Filtering Attributes are specified, Dynamics 365 treats the plugin as interested in all update operations.
Example:
Account Update Plugin Registered
↓
No Filtering Attributes Configured
↓
Any Account Update
↓
Plugin Executes
This often leads to:
- Unnecessary database calls
- Additional plugin executions
- Increased execution times
- Higher infrastructure costs
For heavily used tables such as Account, Contact, Opportunity, or Case, the impact can become significant.
How to Configure Filtering Attributes in Plugin Registration Tool
Filtering Attributes can be configured while registering or updating a plugin step.
Step 1
Open Plugin Registration Tool.
Step 2
Locate the desired plugin step.
Step 3
Open the Step Registration window.
Step 4
Find the field labeled:
Filtering Attributes
Step 5
Click on 3 dots besides the field to select the fields.
Example:
creditlimit,customerrating
Step 6
Save the plugin step.
After registration, the plugin will execute only when one or more of these attributes are included in the update request.

Practical Example
Suppose a business requirement states:
Recalculate customer risk whenever Credit Limit changes.
A plugin is registered on:
Message: Update
Primary Entity: Account
Filtering Attributes: creditlimit
Plugin Code
public void Execute(IServiceProvider serviceProvider)
{
IPluginExecutionContext context =
(IPluginExecutionContext)
serviceProvider.GetService(typeof(IPluginExecutionContext));
Entity target =
(Entity)context.InputParameters["Target"];
// Business Logic
}
Test Case 1
User updates:
Account Name
Result:
Plugin Does Not Execute
Test Case 2
User updates:
Credit Limit
Result:
Plugin Executes
This is exactly how Filtering Attributes help reduce unnecessary executions.
Performance Benefits of Filtering Attributes
Reduced Plugin Executions
Consider a system processing 10,000 Account updates daily.
Without Filtering Attributes:
10,000 Updates
↓
10,000 Plugin Executions
With Filtering Attributes:
10,000 Updates
↓
500 Relevant Updates
↓
500 Plugin Executions
The reduction can be dramatic.
Improved User Experience
Fewer plugin executions mean:
- Faster save operations
- Better responsiveness
- Reduced wait times

Better Dataverse Performance
Each plugin execution consumes resources.
Reducing unnecessary executions improves overall Dataverse efficiency.
Improved Scalability
As the number of users grows, properly configured Filtering Attributes help maintain system performance.
Common Mistakes Developers Make
Mistake 1: Not Configuring Filtering Attributes
Many plugins are registered without any filtering configuration.
This causes execution on every update operation.
Mistake 2: Adding Every Attribute
Some developers configure:
name,phone,email,address,website,creditlimit
At this point, Filtering Attributes provide little benefit because almost every update will trigger the plugin.
Mistake 3: Assuming Filtering Attributes Detect Changes
Filtering Attributes detect attribute presence, not actual value changes.
Additional validation logic is still required.
Mistake 4: Ignoring Filtering Attributes in Update Plugins
Update plugins are often the biggest consumers of resources in a Dynamics 365 environment.
Filtering Attributes should be considered during every Update plugin implementation.
Filtering Attributes and Plugin Depth
Properly configured Filtering Attributes help reduce unnecessary plugin executions and can significantly decrease the chances of creating recursive execution chains.
Consider the following scenario:
Account Updated
↓
Plugin Executes
↓
Plugin Updates Account
↓
Plugin Executes Again
If the plugin executes only when specific attributes are present, the likelihood of unintended recursion is reduced.
For a detailed explanation of recursion and execution depth, read our guide on:
Plugin Depth Exceeded Error in Dynamics 365: Causes, Fixes & Best Practices
Best Practices
✔ Configure only the attributes required by the business logic
✔ Always use Filtering Attributes for Update plugins
✔ Combine Filtering Attributes with value change validation
✔ Use Pre-Operation plugins whenever possible
✔ Review Filtering Attributes during code reviews
✔ Use Plugin Trace Logs during testing
✔ Keep plugin logic focused and efficient
Frequently Asked Questions
What are Filtering Attributes in Dynamics 365 Plugins?
Filtering Attributes specify which attributes must be present in an Update request before a plugin step executes.
Do Filtering Attributes improve performance?
Yes. They reduce unnecessary plugin executions and improve overall system efficiency.
Do Filtering Attributes check if a value changed?
No. They only check whether the attribute is present in the update request.
Should every Update plugin use Filtering Attributes?
In most cases, yes. Update plugins typically benefit significantly from Filtering Attributes.
Can Filtering Attributes prevent Plugin Depth issues?
They can reduce unnecessary executions and help minimize recursion risks, but they are not a complete solution.
Are Filtering Attributes available for Create plugins?
Filtering Attributes are primarily used with Update messages because Create operations naturally include all attributes being created.
Conclusion
Filtering Attributes are one of the simplest yet most effective ways to optimize Dynamics 365 plugins. By ensuring plugins execute only when relevant attributes are included in an update request, developers can reduce unnecessary processing, improve system performance, and build more scalable solutions.
When implementing Update plugins, configuring Filtering Attributes should be considered a standard best practice rather than an optional optimization. Combined with proper validation logic, Pre-Operation processing, and efficient plugin design, they play an important role in creating reliable and high-performing Dynamics 365 applications.