Attachment API GET Uploading File to Amazon S3 Bucket
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-31-2022 01:03 PM
Hi all,
I'm currently using the ServiceNow Attachment API /now/attachment/{sys_id}/file to download a specific attachment from a record. As you can see below I'm able to get the binary string back as a result.
My question is, what can I do with this body? Is there any way to take this response and upload the actual file to an s3 bucket?
Here are the headers I receive as a response.
Any help would be appreciated here, I've been stuck on this for awhile.
1 REPLY 1

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-15-2022 10:16 PM
Hi,
You can use below solution to get it working