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
Sravanthi SunkariSravanthi Sunkari 

Copy Field values across custom objects

Hi I am new to Triggers programming.
I have 2 custom objects PR1 and AD1. I have some fields on PR1 about 10 of different data types. I had created same field lables on AD1.
I have some records which have been created earlier with a field 'Boxname' with only numbers (ex: 0456 format) with a text field data type on object AD1.
Now I have records which are newly created with format (Boxname-000458 format) in 'Boxname' field on object AD1.

Now I want to transfer the field values from PR1 to AD1 for the common fields which have the 'Boxname' format as Boxname-000458 dynamically.

So that I can either hide or delete the fields on PR1 aftr the data transfer is complete as I want these fields only on AD1.

Can anyone please suggest accordingly how to accomplish this?
Thanks in advance.
 
ShashankShashank (Salesforce Developers) 
Now I want to transfer the field values from PR1 to AD1 for the common fields which have the 'Boxname' format as Boxname-000458 dynamically.

Can you please elaborate on this so that we can understand better and assist you?