Email Notification to Contact after lead conversion in Salesforce
Sample Code: trigger LeadTrigger on Lead ( after update ) { Set < Id > setContactIds = new Set < Id >(); for ( Lead objLead : trigger.new ) { ....
Sample Code: trigger LeadTrigger on Lead ( after update ) { Set < Id > setContactIds = new Set < Id >(); for ( Lead objLead : trigger.new ) { ....
In the below example Notification will be sent to the Account owner when the file is attached to their Account records. Notification Type in Setup: Sample Code: trigger ContentDocumentLinkTrigger on ....
For example, if two contacts are merged, only the delete and update contact triggers fire. No triggers for records related to the contacts, such as accounts or opportunities, fire.1. The ....
Below trigger fetches the Accounts of the converted Leads. It sets the Record Type Id to External Account Record Type Id if the Account's Record Type Id is not External Account ....
In certain scenarios, we need to make the callout from the trigger to call an external webservice however we are not able to do so as it gives the below ....
Sample Code: trigger AccountTrigger on Account ( after insert ) { Set < String > setBillCountries = new Set < String >(); for( Account acc : trigger.new ) { if ....
1. Go to Apex Triggers. 2. Check the Sobject type.
In the below example, if the account type is Customer - Direct and if the user tries to update any fields other than Industry and Description, it will throw an ....
Make sure the users have "View and Edit Converted Leads" permission. Check this for more information on this permission. https://www.infallibletechie.com/2018/10/profile-permission-to-view-and-edit.html Sample Code: Trigger: trigger LeadTrigger on Lead ( after update ) { Map < Id, Id > mapOpptyIdLeadId = new Map < Id, Id >(); for ( Lead objLead : trigger.new ) { /* Once the Lead is converted, getting the Converted Opportunity Id */ ....
hour() returns the hour component of a Datetime in the local time zone of the context user. Sample Code: trigger CaseTrigger on Case (before insert) { Boolean tomorrowTargetBool = system.now().hour() ....