how to set value of a journal field?

mayanksinghrath
Mega 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

_____
100 % GlideFather experience and 0 % generative AI

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.