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
Btuitasi1Btuitasi1 

Copy sObject entry to cObject and delete

Hey guys,
I've run into a requirement for my org based on the Idea sObject. I've created a cObject called "Review" also. I need to accomplish the following flow:

User creates "Idea" entry-> Trigger copies it to "Review" and deletes it from "Idea"

Any ideas? Could I accomplish this in one trigger or do I need two?

Thanks for any and all help!

Gigi.OchoaGigi.Ochoa
You can create one trigger to do this, but why not just create a Review to begin with?  It looks like you are not going to use the Idea object if you are immediately deleting the Idea?


Btuitasi1Btuitasi1
We are using the Idea's commenting and voting capabilities for our community. Ideally, we would have liked to use an approval flow, but it's not possible on Ideas. This is the solution I've come up with.