• mahesh admin 3
  • NEWBIE
  • 10 Points
  • Member since 2014

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 3
    Questions
  • 2
    Replies
trigger newoppurtunity on Account (after insert)

{
Account acc=Trigger.new[0];
Opportunity opp=new Opportunity();
opp.name=acc.name;
opp.stagename='yes';
opp.closedate=system.today();
opp.accountid=acc.id;
insert opp;
}