web
You’re offline. This is a read only version of the page.
close
Skip to main content
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?

I have the same question (0)
  • 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

  • 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
    Ray Profile Picture
    1,537 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.

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…

Pallavi Phade – Community Spotlight

We are honored to recognize Pallavi Phade as our Community Spotlight honoree for…

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
MVP-Daniyal Khaleel Profile Picture

MVP-Daniyal Khaleel 125

#2
Tom_Gioielli Profile Picture

Tom_Gioielli 101 Super User 2025 Season 2

#3
Erin Lubben Profile Picture

Erin Lubben 57

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans