Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Suggested answer

How to fire a dynamics C# plugin on specific field value?

(0) ShareShare
ReportReport
Posted on by 5

How can I enable a dynamics c# plugin when a specific value is chosen from an options set?

For example: I have an option set that contains the values red, blue, and green. I want the plugin to start working when the user chooses blue and do nothing otherwise.

tellthebell

  • Amit Katariya007 Profile Picture
    10,407 Super User 2025 Season 1 on at
    RE: How to fire a dynamics C# plugin on specific field value?

    Hello,

    You can use the Custom Workflow Activity (Workflow + Plugin). That means you can create a plugin and u can use that plugin with the workflow.

    and as per your requirement you can add "on change event for that field". After that add a condition on workflow where you can run the plugin if option set value is Blue.

    for reference you can refer this link www.c-sharpcorner.com/.../

    Thank you,

    Amit Katariya

  • Kenneth Ariel Chaves Herrera Profile Picture
    on at
    RE: How to fire a dynamics C# plugin on specific field value?

    Hi dennis8796, I hope you are doing good.

    Could you please provide more details of your requirement?

  • Suggested answer
    Naveen Ganeshe Profile Picture
    3,393 User Group Leader on at
    RE: How to fire a dynamics C# plugin on specific field value?

    Hello Dennis,

    You cannot do this for a specific value. You can use the filter for that optionset field and use pre-image to get the previous value. You have to maintain the specific value logic in your code.

    I think you can achieve specific value triggers by Power automate.

  • Suggested answer
    Guido Preite Profile Picture
    54,077 Moderator on at
    RE: How to fire a dynamics C# plugin on specific field value?

    plugin will be always triggered if you set it when the field is updated.

    inside the plugin code you will write the code to only execute the relevant part is a specific option is selected.

    No other way

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

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Adis Hodzic – Community Spotlight

We are honored to recognize Adis Hodzic as our May 2025 Community…

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Daivat Vartak (v-9davar) Profile Picture

Daivat Vartak (v-9d... 225 Super User 2025 Season 1

#2
Muhammad Shahzad Shafique Profile Picture

Muhammad Shahzad Sh... 106 Most Valuable Professional

#3
Eugen Podkorytov Profile Picture

Eugen Podkorytov 102

Overall leaderboard

Product updates

Dynamics 365 release plans