Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

450
Vistas
Netsuite Suitescript Decode Base64

I'm doing Api integration with Suitescript 2.0. A data encoded with base64 is returned from the Api. Here I need to reach the data I want by decoding the base64 and saving the xml data returned as a .zip and unzip it.

The relevant data can be run in Notepad++ with Plugins > MIME Tools > Decode Base64, saved as zip and opened with unzip.

The script I'm working with is a shcedule script.

I tried the two methods mentioned to decode in Suite Answers.

1- From base64 to UTF_8 with N/encode module (Returned result is completely wrong for this problem)

2 - The solution in the link: https://netsuite.custhelp.com/app/answers/detail/a_id/41271/kw/base64%20decode

(In this solution, when you save the returned data as zip, it gives an "Unexpected end of the archive" error when opening the zip.)

ArrayBuffer() and atob() are not available in Suitescript.

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

The thing I know will work is to proxy the call through a Lambda on some external system.

However if your data is already in base64 you might try just creating a file cabinet file and give it the base64 encoded value as its content. Netsuite already handles base64 for files so you might be overworking the issue. It doesn't sound like you are actually processing the xml if your end goal is to save it as a zip.

If this doesn't help see my comments regarding some clarifications you could add to your question.

about 4 years ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda