Send mail with mail API including attachment

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-14-2020 08:30 AM
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?
- Labels:
-
Integrations

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-14-2020 09:04 AM
You can use OOB attachment API to send attachments
https://developer.servicenow.com/blog.do?p=/tags/attachment-api/
Regards,
Sachin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-14-2020 09:06 AM
Hello Tommy,
You need to use Attachment API.
Docs about Attachment API: https://docs.servicenow.com/bundle/geneva-servicenow-platform/page/integrate/inbound_rest/concept/c_...
https://developer.servicenow.com/app.do#!/rest_api_doc?v=london&id=r_AttachmentAPI-GETid
Community Links related to you query:
https://community.servicenow.com/community?id=community_question&sys_id=988d432ddb9cdbc01dcaf3231f961973
Regards,
JAS

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-14-2020 09:49 AM
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.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-14-2020 11:42 AM
email API doesn't have functionality to send attachment with email.
you will need 2 call to create attachment after sending email.
Regards,
Sachin