Send mail with mail API including attachment

Tommy Jensen
Giga Guru

I would like to send an email via REST API from an external application

https://developer.servicenow.com/app.do#!/rest_api_doc?v=orlando&id=r_email-api-post

 

and I want to include files but the documentation does not specify how to do that. Does anybody know how to?

6 REPLIES 6

sachin_namjoshi
Kilo Patron
Kilo Patron

You can use OOB attachment API to send attachments

 

https://developer.servicenow.com/blog.do?p=/tags/attachment-api/

 

Regards,

Sachin

 

 

Tommy Jensen
Giga Guru

I am aware of the attachment API.

What I am asking is how to make sure that the uploaded attachment is SENT out with the email I send with the email API ? This is two different API CALLS and I see no way in the mail api to associate the email with an attachment.

email API doesn't have functionality to send attachment with email.

you will need 2 call to create attachment after sending email.

 

Regards,

Sachin