You need to sign in to do that
Don't have an account?
Nasipuri
Trigger
Hi,
I am very new to Apex Cade.
I am trying to write a trigger for Opportunity object as below.
This is intended to assign the Opportunity with Amount greater than amount 500 to a specific user.
Code:trigger DinTestTrig on Opportunity (after insert ) { Opportunity opp = new Opportunity() ; if(opp.Amount >=500) { opp.OwnerId='00550000000s6RGAAY'; } }
But the trigger is not working, i.e. the owner is not changing accordingly.
Can anybody please help?
Thanks
Dinesh Nasipuri
Hi,
Thanks for your response.
But when I am creating an opportunity with amount greater than 500 the owner is not changing.
Thanks,
Dinesh Nasipuri
Message Edited by SimonF on 08-13-2007 10:35 PM
Thank you Simon .it is working fine now.
Regards,
Dinesh Nasipuri