Hello everyone, can anyone tell me how do we call ...
# suitescript
u
Hello everyone, can anyone tell me how do we call a suitelet using HTTPS module from a UserEventScript if the Suitelet is not available without login?
b
the usual answer is you wouldnt, find an alternative
u
I dont think I get that
I have been getting 500 status error.
This is the code I am using.
b
the code is irrelevant, internal suitelet urls require the client to be logged into netsuite
or at least to send a valid JSESSIONID cookie
u
And I did mention that I am calling it from UserEventScript on an item record
b
find an alternative unless you think its sane to get that cookie
z
You are required to either make your suitelet public or use your suitelet script in a userevent as import library and invoke it.