Issues retrieving secrets via Suitescript

Hi all, I’m struggling a lot to figure out how to retrieve the custom secrets created via Netsuite Secret Manager,  the available doc does not seem to work properly. I’m using this and as reference, particularly following the “Create an Authentication Header Using a Secure String” case.

Could someone please share a suitescript sample or your experience retrieving secrets using Suitescript?

Rookie Asked on May 22, 2023 in SuiteScript.
Add Comment
1 Answer(s)


Firstly, you are unable to retrieve the secret directly but can use is, as you say, with a secure string.

    input: 'whatever you like {SECRET_KEY_ID} in here'
So, in other words, you put your secret key ID inside curly braces and have the rest of the string however you like.
I hope that makes sense.
Advanced Answered on May 22, 2023.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.
  • This site made possible by our sponsors:   Tipalti   Celigo   Become a Sponsor   Become a Sponsor