A recent project I am working on requires the retrieval of comment journal fields from a ticket for use on an external portal.

This can be achieved using a direct table level call using the ServiceNow API.

I crafted the GET message to look like this:

1
https://instancename.service-now.com/api/now/table/sys_journal_field?sysparm_query=element=comments^element_id=SYS_ID_here

As you can see the table being called is the where all journal entries for tickets are stored (sys_journal_field) and the element I need is “comments”- simply adding the sys_id of the record or ticket afterwards will return all journals.

You can test this by using PostMan.

Also bear in mind you will need to expose the journal table to the API so ServiceNow can GET the record information, this can be achieved by editing the system property: glide.ui.permitted_tables.

Thanks for reading- I hope this helps someone!

1 Comment

  1. Etta

    Home run! Great sliggung with that answer!

    Reply

Leave a Reply

Your email address will not be published. Required fields are marked *