Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

448
Visualizações
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 Respostas
Responde à pergunta

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 Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda