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
AzusfdcAzusfdc 

My requirement whenever for opportunity new product2 is added then for child of product2 is product1__c is to be inserted could any one help on this ?

Relationship
William TranWilliam Tran
Use Process Builder to accomplish it.

It is triggered by Prd2 added to the Opportn, the action is to create Prd1__c. 

As a common practice, if your question is answered, please choose 1 best answer. 
But you can give every answer a thumb up if that answer is helpful to you. 

Thanks
AzusfdcAzusfdc
Hey William Tran I think its not possible with process builder. If possible will you share screenshots. If not suggest with using trigger 
HARI KRISHNAHARI KRISHNA
Hi Azeem,

You can write Trigger on OpportunityProducts.Which basically contains required fields of Product 1 Object  map those fields and perform Insert/Upsert Operation with Trigger After Insert Event.Good luck.