Alert button in Visualforce page in Salesforce
Sample Code: Visualforce page: <apex:page controller="SampleController"> <script> function callSave(){ var r = confirm("Are you sure want to save?"); ....
Sample Code: Visualforce page: <apex:page controller="SampleController"> <script> function callSave(){ var r = confirm("Are you sure want to save?"); ....
Sample Code: Datetime myDate = Datetime.newInstanceGMT(2008, 12, 1, 0, 0, 0); system.debug('Value is ' + myDate); Output:
Just add n days to the Date field in the formula field. Kindly select Date while creating a formula field.
Sample Trigger: trigger emailCheck on Employee__c (before update){ Map<Id,Employee__c> o = new Map<Id,Employee__c>(); o = trigger.oldMap; for(Employee__c n : trigger.new) { Employee__c old = new Employee__c(); old = o.get(n.Id); if(n.Email__c ....
Knowledge User checkbox on the user detail: By default, all internal users with Read permission can read published articles.Lightning Knowledge uses user profile permissions or permissions sets to give agents ....
Scenario: The relationship between Member and Interests is Master Detail. One member can have multiple interests. Check Valid Interests button will say whether any interest under the Member is active ....
1. Go to My Settings. 2. Select Personal and Advanced User Details. 3. Click "Edit". 4. Enable "Force.com Quick Access Menu". Output:
Maximum trigger depth exceeded Salesforce exception is thrown when the trigger recursion is not handled well in the code. Sample Trigger: trigger AccountTrigger on Account(after insert, after update){ AccountHandlerController.perform(trigger.New); } ....
"Maximum trigger depth exceeded" exception in Salesforce occurs mainly due to recursion. Kindly implement a static variable in a class to avoid the trigger recursion. Check the below site to ....