Find your people. Pick a challenge. Ship something real. The CreatorCon Hackathon is coming to the Community Pavilion for one epic night. Every skill level, every role welcome. Join us on May 5th and learn more here.

Business Rule to copy a string field's value into another journal field?

Aki18
Tera Contributor

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.

Aki18_0-1668419718045.png

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

5 REPLIES 5

Shweta Khajapu1
Giga Expert

Hi Aki,

Use Before Update BR.