In the save event of the Entity, we can pass the execution context as a parameter.
It has getEventArgs method to retrieve an object that contains methods you can use to manage the save events.
It returns an integer valueIt returns an integer value
Entity
| Mode | Value |
All | Save | 1 |
All | Save and Close | 2 |
All | Save and New | 59 |
All | AutoSave | 70 |
Activities | Save as Completed | 58 |
All | Deactivate | 5 |
All | Reactivate | 6 |
User or Team owned entities | Assign | 47 |
Email (E-mail) | Send | 7 |
Lead | Qualify | 16 |
Lead | Disqualify | 15 |
Returns a value indicating whether the save event has been canceled because the preventDefault method was used in this event hander or a previous event handler.
executionObj.getEventArgs().isDefaultPrevented()
Hope this helps.
--
Happy CRM'img
Gopinath.
No comments:
Post a Comment