Skip to main content
Chaithaly AS (Intel) 님이 #Apex에 질문했습니다
Hello,

I have this scenario where I have a child object called 'reserve__c'  for an 'opportunity' as a parent.

when a new opportunity is created ,I want to make sure user creates reserve__c record as well.

Can someone please help me with the solution! 
답변 3개
  1. 2020년 2월 21일 오후 8:08
    Hi Chaithaly,

    You can write some logic in afterinsert context of Opportuinty tirgger to create a new Reservce__c record with everytime an opportunity is created and then you users can go in a fill the data on that reservce record thats created. If you want users to create populate an opportunity and also have the option to populate reserve object data before inserting then you might have to do some standard buttton overrides on the New button of Opportunity. Hope this helps.

    Thanks,

    Nihar.
0/9000