Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
A trigger is a feature of the Salesforce platform consisting of Apex code that executes before or after DML operations.
0
votes
2
answers
581
views
How to use aggregate function?
I am creating a trigger on Opportunity, whenever new Opportunity is inserted the value of Amount field get summed up for all other Opportunity of the same parent Account and display the sum on the Account … I have created
trigger sumOpportunity on Opportunity (after insert) {
list<Opportunity> newOpportunity = trigger.new;
Set<Id> parentAccId = new Set<Id>();
for(Opportunity opp : newOpportunity …
2
votes
2
answers
7k
views
How to subtract 1 day from DateTime value in apex?
I want to schedule cron expression for one day beafore the Event's StartDateTime field. So is there any method like addDays() to subtract days from DateTime Value?
0
votes
check if record with same mobile number exists in two different objects
You can use SOSL Query to find the record
Example : Find 'MobileNo' in all fields returning Obj1 ,Obj2
Let me know if it works!