You need to sign in to do that
Don't have an account?
srihari Nadendla 22
Hi all,
I am new to the trigger,Please help me for the error
I have searched all the forums but i couldnt find the answer
trigger OP on Opportunity (after insert)
{
List<Account> acc=new List<Account>();
for(Opportunity anu:Trigger.new)
{
if(anu.OrderNumber__c==111)
{
Account at=new Account();
at.Ownership='Public';
acc.add(at);
}
}
insert acc;
}
Variable does not exist: OrderNumber__c
Hi all,
I am new to the trigger,Please help me for the error
I have searched all the forums but i couldnt find the answer
trigger OP on Opportunity (after insert)
{
List<Account> acc=new List<Account>();
for(Opportunity anu:Trigger.new)
{
if(anu.OrderNumber__c==111)
{
Account at=new Account();
at.Ownership='Public';
acc.add(at);
}
}
insert acc;
}
Please you this
It will help you.
Mark a best answer , if it solves your problem.
Thanks,
Arvind Kumar