Monthly Archives: August 2013

CRM 2011 Javascript sample – roles and events

CRM 2011 Javascript sample code for catching an onSave event and prevent the event from happening unless the user belongs to a certain security role.

In my example the “Cancel Sales Order” event is caught and prevented by calling the function CatchCancelEvent on the onSave method of the Sales Order form with the execution context passed as the first parameter.

Continue reading

Advertisements