You need to sign in to do that
Don't have an account?
Maverick123
Get Trigger.New instance values in AfterInsert/AfterUpdate Operation
Hi Friends,
Is there any way of getting Trigger.new values in AfterInsert / AfterUpdate operations, i know we cant get in normal trigger operations.
Is there a possibility we can store it somewhere in a before instance and then reuse it in the after update operations. Please advice.
Thanks,
Maverick
Is there any way of getting Trigger.new values in AfterInsert / AfterUpdate operations, i know we cant get in normal trigger operations.
Is there a possibility we can store it somewhere in a before instance and then reuse it in the after update operations. Please advice.
Thanks,
Maverick
Thanks for the reply...but now as per your example try accessing the status values in the after update operation, both trigger.old and trigger.new would give you status as 'best'....what i am looking for here is i need the value 'Good' in the after update operation. Hope this helps...
Regards,
Maverick
lead oldValue = new lead();
for(lead l:trigger.new){
oldValue = System.Trigger.oldMap.get(l.Id);
}
string oldstatusValue = oldValue.status;
May be it helps you
Regards,
Mahendar.