Am I missing a way to get the url of a suitelet in...
# suitescript
c
Am I missing a way to get the url of a suitelet inside a client script, or do I have to hardcode it?
https.requestSuitelet only works for external suitelets, and url.resolveScript is server side only. I wonder if i'm missing something.
b
do url.resolveScript anyways
e
so… it does work? regardless, you could always prepare the url in a beforeLoad User Event script and place it in a custpage dynamic field to retrieve in your client script if needed
c
I just found an old client script that's still deployed where I used it, so I guess it does, yeah.
e
i thought so as well, but when you mentioned the restriction and i look at the documentation, i see it is indeed supported “All server scripts” only… but great.