- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-17-2021 12:05 AM
I am trying to post a binary file as an attachment to a change request table using user who has itil role permission, On Post Api call from postman I am getting below error
https://<instance >/api/now/attachment/file?table_name=change&table_sys_id=eb54c83a2f526010f48ed3f62799b638&file_name=test
Post API
Response
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-17-2021 12:32 AM
ensure that user has table level WRITE ACCESS to change_request table
Then only the attachment can be added
also noted the table name is incorrect
https://<instance >/api/now/attachment/file?table_name=change_request&table_sys_id=eb54c83a2f526010f48ed3f62799b638&file_name=test
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-17-2021 12:31 AM
example here on how to post binary file to ServiceNow
POST binary file to ticket ServiceNow REST API - Remove boundary and Content-Type
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-17-2021 12:32 AM
ensure that user has table level WRITE ACCESS to change_request table
Then only the attachment can be added
also noted the table name is incorrect
https://<instance >/api/now/attachment/file?table_name=change_request&table_sys_id=eb54c83a2f526010f48ed3f62799b638&file_name=test
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader