Trigger Scenario 8 : The following Trigger will fires when we try to create the account with same name i.e. Preventing the users to create Duplicate Accounts Object : Account Trigger: Before Insert, Before Update MIND IT ! Here (Way-1), I have used SOQL inside for loop which will affect governor limit and it is not best practice. The most important being that it is not bulkified. We should always avoid SOQL inside loop. So please see second way-2 below for best practices. WAY-1 Trigger Code : AccountDuplicateTrigger.apxt 1 2 3 4 5 6 7 8 9 10 trigger AccountDuplicateTrigger on Account (before insert, before update) { for (Account a:Trigger. new ) { List<Account> acc=[select ID from account where Name=:a.Name and Rating=:a.rating]; if (acc.size()> 0 ) ...
Trigger Scenario: When a new Contact is created for an existing Account then set Contact other phone as Account phone. Trigger ClassToUpdateContactOtherPhone
Different Salesforce User Licences The salesforce User-licences are divided into different types, which are given below: Salesforce Salesforce Platform Lightning Platform: com-One App Knowledge only User Content Only User Guest User Customer Portal Manager Standard Customer Portal Manager Custom High Volume Customer Portal User Chatter Only Chatter Free License Chatter External 1. Salesforce The Salesforce license type is the Standard user license designed for the users who need complete access to the standard CRM and Salesforce AppExchange applications. The users with this license can access any standard or custom application. This is one of the most commonly purchased licenses. This is available in all the salesforce editions. 2. Salesforce Platform This license type is for those users who only want to have access to custom or AppExchange App without the standard CRM functionalities. With the license, the users can access the core platform functionalities, e.g., acc...
Comments
Post a Comment