Before I go down a rabbit hole, is it possible to ...
# suitescript
e
Before I go down a rabbit hole, is it possible to use
form.addCredentialField()
, store the GUIDs in a custom record, and then use those GUIDs somehow with a basic authorization header in
<http://https.post|https.post>()
?
s
yes
indeed I think that is exactly one intended use case.
e
I'm trying but my auth is failing. What does `https.post({credentials:myCreds})`actually add to the request?
I suppose I could use some type of service to find out lol
b
I heavily recommend base 64 encoding the username and password combination before entering it in the credential field
e
I'll try that
b
Other than that, use a echo service like httpbin.org to see what headers netsuite is sending out
e
that's the one. thanks @battk
s
webhook.site is another one I like