You need to sign in to do that
Don't have an account?
SFDC_Learner
Trigger.newmap & tirgger.oldmap
Where we use (trigger events) trigger.newmap & trigger.oldmap?
function readOnly(count){ }
You need to sign in to do that
Don't have an account?
Where we use (trigger events) trigger.newmap & trigger.oldmap?
if(trigger.newmap,get("someid").name != trigger.oldmap,get("someid").name){
//Set the name change date
}
you will use that in " before" triggers
Hi
here is the link for a brief on trigger context variable such as trigger.new/old/newmap/oldmap
http://www.salesforce.com/us/developer/docs/apexcode/Content/apex_triggers_context_variables.htm
Thanks
Can u confirm this.
We use,
Trigger.newmap -> before insert,before update, after insert and after update events.
Trigger.oldmap -> before delete, before update and after update.
each on its own your are nearly right, but why asking then?
combined newMap & oldMap for comparing values only before makes sense
or how did you get the old values if you have just overridden the old values?
Documentation reads
Note that this map is only available in before update, after insert, and after update triggers.
Note that this map is only available in update and delete triggers.
This is sure beacuase i will test it