You need to sign in to do that
Don't have an account?
Katjag8
Use trigger to create a Note - possible?
Is it possible to use a trigger to create a note on a object? have a text field value that I need to populate within Notes & Attachments on custom object. Any help is greatly appreciated.
Sure is. You'd just create the trigger on the custom object where the "note" field is and save it as a new record on the "Note" object. Might be tricky logic though... like for example, when you click save, would the value you wrote in the note field stay in that field, as well as create the note on the attachments object? If so, would modifying it create a new note with all the same information populated in yet a new note record? Or would you want the note field on the custom object to delete as soon as the note record is created, thereby making the note field *always* blank in View mode on the custom object?
Once you figure out the logic that you want to apply, it shouldn't be too hard at all, assuming you're familair with writing triggers.
New to writing triggers and from that couldn't it be only on Insert, Edit that would create the Note within Note & Attachments?
Try below trigger