How to Check if a Journal field is empty

Eli Guttman
Tera Guru

Hi,

 

I tried to check in a mail script and a business rule if a field of journal type is empty,

 

what is the best way to do it? does it different if i'm using "Journal Input" field?

 

thank you!

1 ACCEPTED SOLUTION

darshanr
Kilo Guru

Hi Eli,



Journal field will always be empty.


You can check with below line:



current.fieldName.getJournalEntry(-1);// It will bring all the journal entries which were added to this



If empty then no entries were added.


Using Journal Fields - ServiceNow Wiki


Please mark answer correct if it was.




Thanks,


Darshan


View solution in original post

5 REPLIES 5

Sys ID of the record to be specific for Querying the sys_journal_field table.



Thanks,


Subhajit