We're reclaiming inactive PDIs to keep them available for active builders. Learn what's changing, who's affected, and how to protect your work. Read More

how to set value of a journal field?

mayanksinghrath
Tera Contributor

I have made a custom table which is extended from task table i wanna add some message in work notes which is a journal field i have tried everything setValue,setjournalentry and adding it like a string nothing is working

3 REPLIES 3

glideFather
Tera Patron

Hi @mayanksinghrath,

 

share what you tried with me to review


✂-----Cutting-out-the---✦AI-noise✦---All-replies-written-and-vouched-for-by-GlideFather---

Pavel4
Tera Expert

set string value of your comment directly to the field element in GlideRecord, like

var customTableGR = new GlideRecord("u_custom_table");
customTableGR.u_custom_journal_field = "This is Journal Comment";
customTableGR.update();

 
Please, next time, before you enter new question, try your google superpowers first...

how to set value of a journal field.png

yashkamde
Mega Sage

Hello @mayanksinghrath ,

 

setjournalentry() should work on this...

plz share your script or any screenshots ??

 

Refer this :

Screenshot 2026-03-30 142801.png

 

https://www.servicenow.com/docs/r/washingtondc/platform-administration/c_JournalFields.html 

 

If my response helped mark as helpful and accept the solution.