Monday, July 13, 2015

Implement Business Logic on Lead Disqualify

Whenever you disqualify the lead it save the Lead form, so you can have  JS registered on save event to check if user initiated action to disqualify lead
In this case you need to check for savemode() equal to 15 on save event of lead

In the save event you can use the execution context object getEventArgs method to retrieve an object that contains methods you can use to manage the save event.


execObj.getEventArgs().getSaveMode()

EntityEvent ModeValue
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


Source: 
https://msdn.microsoft.com/en-us/library/gg509060(v=crm.6).aspx






#AW Customization Consultant Maison Consulting & Solutions

Asp.Net MVC (5) - Exception Filter - HandleError

Applicable on Asp.Net MVC5 HandleError Filter This belongs to Exception Filters category (Authentication Filter, Authoriz...