Stop the Close Event of Workspace
After the chat , the incident opens in the saved form. So even if some fields are compulsory, the agent is able to close the workspace.
Using an addin, I am able to capture the Close event of the workspace by the following event handler
_recordContext.Closing += new System.ComponentModel.CancelEventHandler(record_Closed);
But how to stop the close event.
My requirement is that agent should not be able to close the incident without filling the compulsory fileds.