Knowledge found and lost while working with Microsoft Dynamics CRM
RSS icon Home icon
  • Using the OnSave event in MSCRM 3.0

    Posted on February 28th, 2006 mitch Print Print No comments

    Today, in a post in the MSCRM 3.0 Developer newsgroup, Simon pointed out that their was no reference to capture the Save and New button event.

    The SDK documentation for the OnSave event lists the following event.Mode values:

    CRM_FORM_SAVE_MODE_SAVE = 1
    CRM_FORM_SAVE_MODE_SAVEANDCLOSE = 2

    I put the following code into the OnSave event of a form:

    alert(event.Mode);

    and found that Save and New generates a Mode of 59.

    Write that down somewhere in case you need to capture that event.
     

    Customization, Dynamics CRM
    1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
    Loading ... Loading ...
    1,425 views