Customer Engagement & Dynamics CRM Forum

Expand all | Collapse all

Error handling in CRM sandbox plugIn

  • 1.  Error handling in CRM sandbox plugIn

    Posted Jul 08, 2020 10:41 AM
    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, 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

  • 2.  RE: Error handling in CRM sandbox plugIn

    Posted Jul 09, 2020 05:33 PM
    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

  • 3.  RE: Error handling in CRM sandbox plugIn

    Posted Jul 12, 2020 05:05 AM
    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

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