After focusing on working with standard elements of Dynamics CRM previously, we now turn our attention to unexpected situations in your scripts including a focus on input validation techniques, handling unexpected results, blocking events from taking place, and complex error handling.
Note
All scripting should include error handling. Previous examples did not include error handling to allow for clarity. However, in production, your code should always handle unexpected situations.