Skip to main content

Notifications

Community site session details

Community site session details

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

Can I prompt or show alert in dynamic CRM through plugin c#?

(0) ShareShare
ReportReport
Posted on by 15

I want to display message to check if plugin is working properly or not by getting alert box or something like that how can i perform it?

  • Suggested answer
    Ray Profile Picture
    1,507 on at
    RE: Can I prompt or show alert in dynamic CRM through plugin c#?

    Like Vinit said, if your plugin is a Sync one, then if there are any exceptions, you should be able to see a popup with the exception message. If you cannot see the exception popup, one of the reasons is that you catch it in your code and never throw.

    I would suggest using the ITracingService to log the plugin runtime info and data rather than an alert box. Tracing log is more flexible and effective way. Works for both Sync and Async plugins.

  • Suggested answer
    CRMJetty Profile Picture
    3,512 on at
    RE: Can I prompt or show alert in dynamic CRM through plugin c#?

    Hello Mukhan 1833

    It's not possible. You can pass a message from a plugin to a user by throwing an exception, the user will get the exception message but they wont be able to reply.  I would suggest a dialog using custom workflow activities or using  of Onload, OnSave Javascript functions .

  • Suggested answer
    Vinit_Bhagat Profile Picture
    102 on at
    RE: Can I prompt or show alert in dynamic CRM through plugin c#?

    Hi mukhan1833,

    If you want to check if plugin is working properly or not then simply keep your plugin in "synchronous" mode.

    If your plugin fails, then it will throw an error on the screen.

    Please mark as verified if the answer is helpful. image

    Thanks!

    Vinit

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

Jainam Kothari – Community Spotlight

We are honored to recognize Jainam Kothari as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

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

Leaderboard > Customer experience | Sales, Customer Insights, CRM

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

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

#2
Vahid Ghafarpour Profile Picture

Vahid Ghafarpour 167 Super User 2025 Season 1

#3
Muhammad Shahzad Shafique Profile Picture

Muhammad Shahzad Sh... 138 Most Valuable Professional

Product updates

Dynamics 365 release plans