Hello anyone tried to use <https.post> in UE (afte...
# suitescript
d
Hello anyone tried to use https.post in UE (afterSubmit) entry point? I'm having an error tho before it was working fine but now it returns an html tags when I copy all the tags it shows that I need to relogin. Btw, i'm calling a suitelet in https.post.
b
the internal url of a suitelet requires the request to have a valid JSESSIONID cookie
server side scripts dont have that cookie
d
Even I'm using the external url of suitelet?
b
you can use the external url
its pretty unusual to use an external suitelet like that
d
anyways, thank you for your help.
z
external URL requires authentication right? Tokens and other header data
r
For Suitelets, no authentication is required as far as I know
d
I also tried the internal url of suitelet but error still persists.
b
i would recommend alternatives
like directly using the code from the suitelet in your user event script
d
Yah. I'm thinking also that alternative. Thanks thanks.
Made some changes instead of suitelet. I used restlet and in userevent https.requestRestlet is the method I used in N/https. Credits to my team lead for helping me @Antonio Jr
❤️ 1