Scripted Rest API resource for receiving attachments

ashwryadj
Tera Expert

We have requirement as below

- If someone sends attachment along with other information in order to have an incident created via Scripted Rest API the attachment should be attached to the newly created Incident.

 

What configurations do I need to make this work ?

 

Thank you in advance.

1 REPLY 1

SteveMacWWT
Kilo Sage

This would need to be done in 2 separate calls. One to generate the Incident, and then the 2nd to add the attachment. 

To connect the 2, return the sys_id of the Incident that was created in the first call, then the sending tool can use the Attachment API to send the file.