Hi All Experts, suppose I updated a filed value through webapi call in ms CRM and after update I want to trigger a plugin . How to do this.
*This post is locked for comments
Thanks alot Ben....for helping me
You create the plugin and register 2 steps on it.
1) for the update - set the message to update, the primary entity to your entity and add the field to the filter attributes and it will run automatically if the field is updated.
2) for the create - set the message type to create and the primary entity to your entity. You can't set the filter attributes field but you could look at the entity being created by looking at the target parameter of the input parameters and check which attributes are part of the entity.
And how we handle if a new record is created through Web API . And I want to trigger a plugin automatically for the same created record..
Thanks Ben...please correct me if my understanding is correct.
So when my field is updated through webapi...I have to register a step based on filtering attributes. So when field is updated, automatically plugin is triggered.?
on the plugin Register a new step on the update message and add that field / attribute in the filtering attributes. The plugin will then be triggered as the webapi call updates that attribute.
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,240 Super User 2024 Season 2
Martin Dráb 230,149 Most Valuable Professional
nmaenpaa 101,156