getSaveMode(), returns a value indicating how the save event was initiated by the user.
execContext.getEventArgs().getSaveMode();
getFormType(): Method to get the form type for the record.
Xrm.Page.ui.getFormType();
--
Happy CRM'img
Gopinath.
execContext.getEventArgs().getSaveMode();
Event Mode
|
Value
|
Save
|
1
|
Save and Close
|
2
|
Deactivate
|
5
|
Reactivate
|
6
|
Send (Email)
|
7
|
Disqualify (Lead)
|
15
|
Qualify (Lead)
|
16
|
Assign (user or team owned entities)
|
47
|
Save as Completed (Activities)
|
58
|
Save and New
|
59
|
AutoSave
|
70
|
getFormType(): Method to get the form type for the record.
Xrm.Page.ui.getFormType();
Form Type
|
Value
|
Undefined
|
0
|
Create
|
1
|
Update
|
2
|
Read Only
|
3
|
Disabled
|
4
|
Quick Create
|
5
|
Bulk Edit
|
6
|
Read Optimized
|
11
|
--
Happy CRM'img
Gopinath.
No comments:
Post a Comment