Attachemt is attach in incident but after download the file it shows look like don't support
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-28-2025 05:23 AM
Hello Community,
We faced one issue when the attachment is attach to the incident but after download the file it shows look like don't support or this file is corrupted. Text file is open Correctly but other file types is not open properly.
For more information I attached the screen shots.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-28-2025 05:24 AM
attachments are added from UI by end users or via API?
If via API then seems it's not adding the file correctly and hence giving that error
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-28-2025 05:32 AM
Hello @Ankur Bawiskar
We are trying to add attachment through the REST API's still its not working. 3rd party sending the correct content_type in pay load but in serviceNow its always applicaton /json.
For your reference I paste the Payload that we hit through the Rest API Explorer.
{
"ClientItemnumber" : "INC055XXXX",
"ItemNumber" : "INC00000053XXXXX",
"Filename" : "testOne.png",
"u_Data" : "aGpkaHNkaGRqaHNkanNkc2hqc2poZA==",
"content_type" : "image/png"
}
When we receives it form 3rd party it not working. But when we hit form ServiceNow is working.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-28-2025 05:33 AM
which API 3rd party is consuming?
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-28-2025 05:54 AM
Hello @Ankur Bawiskar,
https://dev7778.service-now.com/api/now/attachment/file?table_name=incident&table_sys_id=${u_sys_id2...
The 3rd party consuming this API.
Thanks