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
krish99krish99 

records moving from one object to another object

HI, I am having invoices object in that field called Balance due when i enter amount in that field and click on save , at that time the record have to move from invoices object to amount object how can i achieve this.

firechimpfirechimp

Hi Krish,

 

It seams a little odd to be duplicating data like this, why not just create a relationship to the invoice?

 

Anyway if this is how you need it to work, the best way to copy information from one record to another like this would be to use a trigger. In the trigger you woud need to define which values from the invoice map to which fields on the amount object, and then save the new amount records.

 

Hope this helps!

 

krish99krish99

@firechimp 

 

   Could  u please send me the sample code please..