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
Brandon NelsonBrandon Nelson 

Transfer new note from one record to another

OK, my org has a custom object and has a unique ID attached to it. I can't do a nomral transfer of records because we need to kee both.  I build a flow and a screen takes the OLD UID and the NEW UID. 

Upon getting this nfo, my flow takes all the info from the old record and copies it to the new record. I was able to get all the info over, plus the related activites and events. I'm now needing the notes and files. 

I can not for the life of me find out HOW I can move the notes over. 

Example: Moving tasks, I simply change the WHATID. I read that CONTENTNOTE is the new note object, but it does not have the WHATID to change. 

How can change the related to field on a note in lighting from the backend (using FLOW or APEX).