create incident with an attachment rest api?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-19-2023 06:17 AM
we have a use case where third party create an incident with an attachment if it has one, I see we have two separate APIs to create incident and add attachment .
so in this case how to combine these both APIs so that i create an incident and add attachment to the same after creating
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-19-2023 06:58 AM
The Attachment API requires that it have the sys_id of the record it is associated with so I don't think the two APIs can really be combined because the incident would need to be created first.
However, you can create a Script REST API so that you only need to use one API. https://nowlearning.servicenow.com/lxp/en/now-platform/now-platformname?id=learning_course_prev&cour...