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
Trif Cristian 7Trif Cristian 7 

how can i relate objects?

So i have 2 custom Objects. Object_C1, Object_C2. How can i make a trigger when i create a record on Object_C2 automatically after insert make a record on Object_C1 ? How can i relate these 2 objects through what ?

 
alsinan nazimalsinan nazim
Hi Trif,

You can use a LookUp relation between Object_C1 and Object_C2. Also there is no need of a trigger, Instead You can use Process Builder to Create a Record on Object_C1 when a record is inserted in Object_C2.
 Hope that helps,
regards
Alsinan