Customer Engagement & Dynamics CRM Forum

Expand all | Collapse all

Error handling in CRM sandbox plugIn

  • 1.  Error handling in CRM sandbox plugIn

    Posted 30 days ago
    We on converting CRM on-premise to online. part of our updates is converting CRM PlugIn to sandbox mode.
    for the error handling, currently we are sending out the error emails by using system..net.mail, which is not an option anymor.
    I am wondering what is the best practice to do the error handling in sandbox plugIn? using own api to sending out error emails? turning on the plugIn trace log in CRM? or anything else? thank you!

    ------------------------------
    Ruonan Wen
    Beacon Funding Corporation
    Northbrook IL
    ------------------------------
    The first step toward cloud success. - Migrate from CRM to D365 with expert guidance from Microsoft. I'm Ready


  • 2.  RE: Error handling in CRM sandbox plugIn

    GOLD CONTRIBUTOR
    Posted 29 days ago
    I tend to write to the Task entity when problems happen, and then I use @Aiden Kaskela's Workflow Elements to email a view of those Tasks each morning so I know what issues need review.  If possible the Tasks can be assigned to the actual domain owner if the kinds of issues can be resolved by Power Users, but otherwise they go to IT.
    ​​

    ------------------------------
    Mike Power
    Senior CRM Solutions Developer
    American University
    Washington DC
    ------------------------------

    The first step toward cloud success. - Migrate from CRM to D365 with expert guidance from Microsoft. I'm Ready


  • 3.  RE: Error handling in CRM sandbox plugIn

    MICROSOFT MVP
    Posted 26 days ago
    I would definitely recommend having decent tracing in your plugins and activating it for "exceptions only" if that kind of errors are enough to track. Tracing comes with basically no cost for performance (trace log entries are written async with the lowest of priorities) and if you just validate that the OOB recurring bulk delete job is running to remove all trace log entries older than 2 days, it shouldn't consume much storage either.

    This of course does not solve the notification need you have, but is always good to have when it's time to start troubleshooting.


    ------------------------------
    Jonas Rapp
    MVP
    Sweden
    ------------------------------

    The first step toward cloud success. - Migrate from CRM to D365 with expert guidance from Microsoft. I'm Ready


If you've found this thread useful, dive deeper into User Group community content by role