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 |
An Opportunity is a Salesforce Standard Object that represents a sale or pending deal.
0
votes
1
answer
1k
views
Custom History Tracking on Opportunity with trigger
Trigger:
Custom Opportunity History Tracking
Create Custom Object : OpportunityHistory
Fields : Field Name(Text), Old Value(Text) and New Value(Text)
Trigger Logic:
• When new opportunity … Code:
trigger OpportunityHistory on Opportunity (after update) {
for(Opportunity opp : Trigger.new) {
System.debug('NEW MAP' +opp );
Opportunity oppOld = Trigger.oldMap.get(opp.Id) …