Bhoopathi

"Be Somebody Nobody Thought You could Be"

Tuesday, September 20

MS CRM Form types


MS CRM Form types and modes in Dynamics CRM 2013


getSaveMode(), returns a value indicating how the save event was initiated by the user. The following table describes the supported values returned to detect different ways entity records may be saved by the user in CRM 2013.
1
execObj.getEventArgs().getSaveMode();
Event ModeValue
Save1
Save and Close2
Deactivate5
Reactivate6
Send (Email)7
Disqualify (Lead)15
Qualify (Lead)16
Assign (user or team owned entities)47
Save as Completed (Activities)58
Save and New59
AutoSave70
getFormType(): Method to get the form context for the record. The following table lists the form types that correspond to the return value.
1
Xrm.Page.ui.getFormType();
Form TypeValue
Undefined0
Create1
Update2
Read Only3
Disabled4
Quick Create5
Bulk Edit6
Read Optimized11