Business Rule to copy a string field's value into another journal field?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-14-2022 02:03 AM
I have a "u_description" field (String) and would like make it show the change history of the populated value just like journal field as below.
Since I can't change the existing field type, I came up with the idea to create another journal field and copy "u_description" value into the new journal field using after/update Business Rule.
However, the BR I created does not populate any value into the journal field... Could you please help me with troubleshooting?
Otherwise, any alternative solutions would be appreciated if any.
*Filter Conditions: [u_description] [changes]
*Script:
(function executeRule(current, previous /*null when async*/) {
var Comment = current.u_description;
current.u_journal_field = Comment;
})(current, previous);
Best Regards,
Aki
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-14-2022 02:24 AM
Hi Aki,
Use Before Update BR.