web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

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

(0) ShareShare
ReportReport
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

I have the same question (0)
  • Verified answer
    Ben Thompson Profile Picture
    6,350 on at

    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

  • Vijay Tailor Profile Picture
    431 on at

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

  • Vijay Tailor Profile Picture
    431 on at

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

  • Verified answer
    Ben Thompson Profile Picture
    6,350 on at

    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
    431 on at

    Thanks alot Ben....for helping me

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans