Scripted Rest Api - Base 64 or binary conversion
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-24-2025 12:00 AM
I have attachments up to 30 MB in size that I need to send to a third-party system. I've created a Scripted REST API that uses base64 encoding to convert the files, but it only works for files up to 2 MB. For files exceeding 5 MB, the conversion fails. Is there any approach to migrate these files to the third-party system?
We tested the out-of-the-box Attachment API and received a response like the following. How can a third party convert that response into a file and attach it to their system (for example, Workday)?
Give me solution for this requirement!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-24-2025 12:49 AM
Did you check this post- BLOG: Scripted REST API to upload attachments to a... - ServiceNow Community
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-24-2025 04:39 AM
Hi @Laveena-Agarwal ,
workday consume our scripted rest Api to get attachment,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-24-2025 08:25 PM
you are creating this scripted REST API in global scope or scoped app?
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-25-2025 05:32 AM
Hi @Ankur Bawiskar
It's Global scope
