You need to sign in to do that
Don't have an account?
bonny mankotia
I just want to know how to update the same trigger?
rigger OppOnAccount on Account(after insert,after update)
{
if(trigger.isinsert)
{
list<opportunity> Listopp = new list<opportunity>();
for(account acc:Trigger.new)
{
opportunity opp = new opportunity();
opp.name = acc.name;
opp.AccountId = acc.id;
opp.StageName = 'Proposal';
opp.CloseDate= system.today()+10;
Listopp.add(opp);
}
insert Listopp;
}
{
if(trigger.isinsert)
{
list<opportunity> Listopp = new list<opportunity>();
for(account acc:Trigger.new)
{
opportunity opp = new opportunity();
opp.name = acc.name;
opp.AccountId = acc.id;
opp.StageName = 'Proposal';
opp.CloseDate= system.today()+10;
Listopp.add(opp);
}
insert Listopp;
}
Please elaborate more what issue you are facing and what is meaning of "what is how to update the same trigger".
-thanks
Ashlekh Gera
My Question is simple i just want to know what is the Trigger code for to update the same record if we Edit the Record?
Thanks.