function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
GanuGanu 

Triggers

Hi,
Need Help on Apex class,
I need to create record in object A with the lookup reference in object B(Connector object) with some other fields in both the objects,
when i create a record in object A, it should create on B also.
now am running a trigger with (before insert,before update).
More helpfull when u send a sample code.

Thanks,
Ganu
werewolfwerewolf
Sorry, your question doesn't really make sense.  Are you saying you want to replicate field values on object B that are set on object A?  Which one is looking up to which?
GanuGanu

Hi,

Thanks for your reply,

Parent object(Programs) having 2 loolup fields Account & Contact,
Child object(Projects) having 3 loopup fields Account,contact & Program,
When i create a new record in Program with the value of account and contact.
The same account and contact and program name should create in my child object also.