Skip to main content

Notifications

Microsoft Dynamics CRM (Archived)

How to trigger a plugin while a filed is updated manually.

Posted on by 431

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

  • Vijay Tailor Profile Picture
    Vijay Tailor 431 on at
    RE: How to trigger a plugin while a filed is updated manually.

    Thanks alot Ben....for helping me

  • Verified answer
    Ben Thompson Profile Picture
    Ben Thompson 6,350 on at
    RE: How to trigger a plugin while a filed is updated manually.

    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.

  • Vijay Tailor Profile Picture
    Vijay Tailor 431 on at
    RE: How to trigger a plugin while a filed is updated manually.

    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..

  • Vijay Tailor Profile Picture
    Vijay Tailor 431 on at
    RE: How to trigger a plugin while a filed is updated manually.

    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.?

  • Verified answer
    Ben Thompson Profile Picture
    Ben Thompson 6,350 on at
    RE: How to trigger a plugin while a filed is updated manually.

    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. 

    0728.Screenshot_5F00_17.png

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,240 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,149 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans