Skip to main content

Notifications

Announcements

No record found.

Dynamics 365 general forum
Unanswered

Trigger Plugin when change in specific dropdown

Posted on by 7

Dear Dynamics 365 Community,

I am seeking advice on whether it is possible to trigger a plugin when a dropdown value changes to a specific option. If this is feasible, could someone kindly guide me on how to implement it?

For instance, I would like to trigger the plugin when the status is set to 'Contract Executed' (as shown in the attached screenshot).

Thank you for your assistance and time.
Best regards.

  • ankitgore07 Profile Picture
    ankitgore07 21 on at
    Trigger Plugin when change in specific dropdown
    Hi,

    Yes its possible.
    1. triggered plugin On save.
    while registering plugin you need to just register step for update and fields just pass you above field Contract Executed.
    So when the option set value get change plugin get
    triggered. but in this case you need to save the record.

    2. triggered plugin On change.

    in this case you need to use javascript and plugin both.
    when user change the option of option set we have the onchange event in script use that and use action to call the plugin code when that on change event get triggered.


    follow the below steps:

    1. triggered plugin On save.

    1. write the simple C# plugin code.
    2. register the plugin in assembly.
    3.Do the configuration like give below.
    in this when account lookup update plugin get triggered.


    2. triggered plugin On change.

    1. in script use on field change event.
    2. when the function for on change get triggered call the action example yo have created the process with name Onchangefield.
    3. now call that process using action. ( Use xrmtool box tool rest build tool to create the action  code in js.)
    4. resgister the  process in step like above ss in place of update pass the process name. 
    5. now when you triggered the on change event plugin get call and code in side plugin get execute.

    Hope this is what you want if yes.. Like the comment.

    Thank you.
     

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

Anton Venter – Community Spotlight

Kudos to our October Community Star of the month!

Announcing Our 2024 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Dynamics 365 Community Newsletter - September 2024

Check out the latest community news

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,532 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 228,501 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans