• mayrich1
  • NEWBIE
  • 0 Points
  • Member since 2009

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 2
    Questions
  • 5
    Replies

Hi,

 

I have created a custom object that has a couple text and picklist fields on it.  The custom object is a child of the Opportunity object.  Whenever an opportunity is created I would like to automatically create a couple new custom objects with the same data in them every time.  Any sample code to get me started would be greatly appreciated.


Thank you

I am trying to create a trigger and class using Apex that will take data from a couple fields on the user record and copy them into fields on an Opportunity using the Opportunity Owner lookup field.  From within the opportunity I need to lookup the opportunity owner's user record and pull over the Title, Department, and Email from the user record and put it in the opportunity record.  I appreciate the help.

Hi,

 

I have created a custom object that has a couple text and picklist fields on it.  The custom object is a child of the Opportunity object.  Whenever an opportunity is created I would like to automatically create a couple new custom objects with the same data in them every time.  Any sample code to get me started would be greatly appreciated.


Thank you

I am trying to create a trigger and class using Apex that will take data from a couple fields on the user record and copy them into fields on an Opportunity using the Opportunity Owner lookup field.  From within the opportunity I need to lookup the opportunity owner's user record and pull over the Title, Department, and Email from the user record and put it in the opportunity record.  I appreciate the help.