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
Shamrock SnowmanShamrock Snowman 

Copy Comment into Activity Notes

I have a custom activity field called Activity Notes (255 text area) and I am looking to create a trigger that will automatically copy text from an activity's Comments field into that same activity's Activity Notes field.

 

Assuming that

  1. the Activity Notes field was otherwise blank for this activity (it will be), and 
  2. the Comment is <= 255 characters so that it will fit.  Ideally, even if the comment is longer the trigger would just copy over the first 255 characters of it.

 

Does anyone have any tips for such a trigger?

 

Thanks.