
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-27-2024 05:43 AM
Hello guys!
Maybe any of you could help me out wiith an issue that I am facing when I try to send and attachment from ServiceNow via REST API to FRESHDESK.
When I send the file via POSTMAN, it works just smooth, but, when I make the same call adding the sys_id of the sys_attachment table on the API call I keep received the message that the field is empty. The payload format received for FRESHDESK is pretty simple:
{
'attachments[]': <FILE>
}
Could anyone give me a hand?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-27-2024 01:34 PM
Hi, unfortunately your post does not make your target platforms requirements or current SNC configuration clear.
Have you looked at restMessageV2 methods like setRequestBodyFromAttachment() ?
RESTMessageV2 - Scoped, Global | ServiceNow Developers
This thread may also contain some helpful information
Send attachment through REST API if Content-Type i... - ServiceNow Community
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-27-2024 08:01 PM
Below posts could be helpful :
https://www.servicenow.com/community/developer-forum/sending-attachment-using-rest-api/m-p/1786194
Thanks and Regards
Amit Verma
Please mark this response as correct and helpful if it assisted you with your question.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-27-2024 01:34 PM
Hi, unfortunately your post does not make your target platforms requirements or current SNC configuration clear.
Have you looked at restMessageV2 methods like setRequestBodyFromAttachment() ?
RESTMessageV2 - Scoped, Global | ServiceNow Developers
This thread may also contain some helpful information
Send attachment through REST API if Content-Type i... - ServiceNow Community

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-30-2024 06:01 PM
Hello @Tony Chatfield1 thank for your answer.
The situation just resolved itself when the client pass me another API endpoint. Now the files are getting on the other side. But, I have a new problem about get the sys attachment data with the correct encoding.
I've just posted a new question: If you have any thoughts will be amazing:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-27-2024 08:01 PM
Below posts could be helpful :
https://www.servicenow.com/community/developer-forum/sending-attachment-using-rest-api/m-p/1786194
Thanks and Regards
Amit Verma
Please mark this response as correct and helpful if it assisted you with your question.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-30-2024 06:02 PM
Hello @Amit Verma thank for your answer.
The situation just resolved itself when the client pass me another API endpoint. Now the files are getting on the other side. But, I have a new problem about get the sys attachment data with the correct encoding.
I've just posted a new question: If you have any thoughts will be amazing: