
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-24-2024 08:59 AM
I'm curious... I need to mimic the behavior of the work_notes field on the incident table.
For example, I know that OOB, this:
allows us to do stuff like this:
var je = current.comments_and_work_notes.getJournalEntry(-1);
to get all the comments and work notes.
Great. Super. Wonderful.
So now I'd like to create the following:
Where I have an API response enter text into the "u_api_response" field, and it get stored into the "u_api_responses" journal list, so that I can do something like this:
var je = current.u_api_responses.getJournalEntry(-1);
So here's the million dollar question.... when the "u_api_response" field gets entered and saved, how do i associate/stuff it into the u_api_responses journal list???
Thanks! 😊
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-24-2024 11:50 AM - edited 10-24-2024 11:51 AM
No, it appears you can have 2. You'll just need to format yours to only show the field you want. So I did it the way you originally asked.
In the form design, set the API Responses field to be dependent on API Response, like this:
The Journal List field didn't show until I had something in the Journal Input field. Then it looked like this:

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-24-2024 11:19 AM
Sort of, but not really. The Journal Input field allows you to input things into the journal. The Journal List field just shows what's in the journal.
So if you add a new Journal Input field, it will just add those to the existing Journal List field(s). So if I create your Journal Input field as you mentioned and add it to my existing Journal List field, it will show in the activity stream.
If you wanted to, you could leave the existing activity stream as it is and create another Journal List field as you mentioned. Then for that Journal List field, just configure it to show only the API Responses. I hope that makes sense. This explains the different types of fields and what they do: https://docs.servicenow.com/bundle/xanadu-platform-administration/page/administer/field-administrati...

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-24-2024 11:25 AM
Ah, but that's the rub... I do NOT want my new Journal Input entries to show in the existing Journal List field of "comments_and_work_notes"... nor do I want it in the OOB activities formatter. I want this completely separate.
Are you saying then that there can only be 1 Journal List field on any given table?? If so, that's poor design on SN side.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-24-2024 11:50 AM - edited 10-24-2024 11:51 AM
No, it appears you can have 2. You'll just need to format yours to only show the field you want. So I did it the way you originally asked.
In the form design, set the API Responses field to be dependent on API Response, like this:
The Journal List field didn't show until I had something in the Journal Input field. Then it looked like this:

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-24-2024 11:54 AM
Yes.... I just noticed that in the documentation you linked, I saw this:
which was the ah-ha moment.
I looked at the "comments_and_work_notes" field's Dependent Field:
So all I have to do now to tie my 2 is do the same on my custom Journal List!
Thank you very much for pointing me in the right direction!