Get incident work notes from API
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-13-2017 06:51 AM
Hi,
I want to get the incident work notes from api, I have been added some work notes as follow:
And trying to get the ticket from api (GET request to https://XXXX.service-now.com/api/now/table/incident/SYSID)
And the "work_note" is empty, so how can I got the work notes lists?
And how can I create from API work notes and related it to exist incident?
Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-13-2017 07:04 AM
The task work_notes field is of type Journal Entry which means the actual values are not stored in the task table. You won't be able to access them via the incident table API. Instead you could create a scripted REST API and can call the API to get the journal entries:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-13-2017 07:17 AM
Hi, Thanks you.
Can I create work notes from API?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-13-2017 07:22 AM
Absolutely as long as the user you are logging in via API has the ITIL role or one that grants write permission to the work_notes field.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-13-2017 07:30 AM
Can you help me please how to create a new work note and relate it to exist incident?