Retrieve Work Notes[work_note] and Additional Comments[comments] Using the REST Table API


Description

By default the REST Table API will not return content of Work Notes[work_note] and Additional Comments[comments] when retrieving data for records that use these fields (usually Task-derived records like Incident, Change Request and so on). 

Release or Environment

All current ServiceNow releases

Instructions

There are two ways to retrieve Work Notes[work_note] and Additional Comments[comments] through the REST Table API:

  1. Add sysparm_display_value=true parameter in the request, this returns the full text of Work Notes and Additional Comments:
  2. Or alternatively export the Journal Field[sys_journal_field] records where Element and Element ID match the record (incident, change request etc) that you're exporting


Additional Information

Note: If trying to do an export then import into another instance of Task-derived records while preserving Work Notes and Additional Comments please see What's Needed to Export/Import Additional Comments and Worknotes between Instances https://hi.service-now.com/kb_view.do?sysparm_article=KB0858692