Anyone familiar with the referencing API Secrets v...
# suitescript
s
Anyone familiar with the referencing API Secrets via SuiteScript? Is there a way to retrieve the password value? Or do you have to create a secure https string using the stored secret?
b
there are ways to use it without a secure string
but the general answer is that you dont get access the the value of the password
you can tell N/https where to use the value using what are essentially string templates
s
I suppose I don't clearly understand how to use the API secrets. This is new to me, but we need a place to store authentication credentials to make API calls to another application. I suppose I would anticipate a built in SuiteScript API, something like "getSecret('custsecret_test1')
b
do you know how to use a template engine like FreeMarker or N/render
s
I have used FreeMarker, and have also used the N/render module
b
same idea, you generate a template with placeholders that will be replaced by the password
👍 1
s
That makes sense, thank you.
n
Here are some samples that might be useful for you @Stephen Gosner: https://www.reddit.com/r/Netsuite/comments/rc52yz/is_anybody_using_api_secrets/
thankyou 1