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

Convert Button for custom object to convert from one object to other

I am new to visual force and wanted to see if this concept is possible.

I created two custom object. If a status in one object changes for the record then the record should automatically get converted to the next object. Is that possible for custom objects? Can someone help?

You can do this by simply having an Apex trigger fired after updating the status field in the object A, it'll create an new record of object B.
Don't forget to mark the converted record of object A (checkbox field "converted"= true) so next time the same record get updated you don't go throw this process again and again.

Thank you.I am working on an enterprise edition and when I try to create a new trigger under the custom object, it says the option is disabled. Can I implement triggers only using sandbox?