Find your people. Pick a challenge. Ship something real. The CreatorCon Hackathon is coming to the Community Pavilion for one epic night. Every skill level, every role welcome. Join us on May 5th and learn more here.

Scripted Rest Api - Base 64 or binary conversion

Syed zabiullah
Tera Expert

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)?

Syedzabiullah_0-1763970751954.png

Give me solution for this requirement!

 

6 REPLIES 6

Laveena-Agarwal
Mega Sage

Hi @Laveena-Agarwal ,

 
workday consume our scripted rest Api to get attachment, 

Ankur Bawiskar
Tera Patron

@Syed zabiullah  

you are creating this scripted REST API in global scope or scoped app?

Regards,
Ankur
Certified Technical Architect  ||  10x ServiceNow MVP  ||  ServiceNow Community Leader

Hi @Ankur Bawiskar 

It's Global scope