How to directly send attachment to the servicenow instance using table api

Obito
Tera Expert

Hi All,

 

How to directly send an attachment (from third party) to the ServiceNow instance using table api. Is there any way please suggest.

 

Thank you.

1 ACCEPTED SOLUTION

That really is going to be a 2-step process.

First create the record with table API. Then based on the output of that send the attachment with Attachment API.


Help others to find a correct solution by marking the appropriate response as accepted solution and helpful.

View solution in original post

3 REPLIES 3

Peter Bodelier
Giga Sage

You should use the attachment API for this:
Attachment API (servicenow.com)

 

You might need to leverage the table API, to look up which record to relate to, depending on your use case.


Help others to find a correct solution by marking the appropriate response as accepted solution and helpful.

I have one question,. Using attachment api can I create new record and add attachment to it ? Because I can see we have to provide sys_id of the record. SO there is there any trick to create a new record and attach the attachment to it

That really is going to be a 2-step process.

First create the record with table API. Then based on the output of that send the attachment with Attachment API.


Help others to find a correct solution by marking the appropriate response as accepted solution and helpful.