Copy Attachment from servicenow to third party application
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-12-2024 08:31 AM - edited ‎06-12-2024 08:39 AM
Hello Experts,
I am new to ServiceNow integration.
I want to copy an attachment from ServiceNow to the Aha third-party application.
I reviewed the Aha API documentation but couldn't figure out how to send an attachment to a third party. What should the content be for sending the attachment? I have attached the third-party Aha documentation link for your reference. Can anyone guide me on this?
Thank you.
Aha API Link:
https://www.aha.io/api/resources/attachments/create_an_attachment_on_a_comment

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-12-2024 08:33 AM
@Mark Wood Please check if Aha support base64 encoded data. If yes, then you can encode your attachment to base64 encoding and send it via the API call.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-13-2024 02:24 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-13-2024 02:30 AM
The format of an attachment is either a multipart/form-data
upload with the input name attachment[data]
or a JSON payload pointing to an URL link:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-13-2024 02:45 AM
Hello @Kieran Anson ,
I'm having trouble sending an attachment. Despite setting the attachment format to multipart/form-data, I still can't get it to work. Could you please briefly guide me on this?
I have attached the request body format that the third party requires for your reference, as I am unable to understand it.
Thank you.
Request body
------------XnJLe9ZIbbGUYtzPQJ16u1 content-disposition: form-data; name="attachment[data]"; filename="sample_plain_text.txt" content-type: text/plain content-length: 27 [uploaded data] ------------XnJLe9ZIbbGUYtzPQJ16u1--