Am I missing a way to get the url of a suitelet inside a client script, or do I have to hardcode it?
Corey Schwoebel
07/20/2023, 6:21 PM
https.requestSuitelet only works for external suitelets, and url.resolveScript is server side only. I wonder if i'm missing something.
b
battk
07/20/2023, 6:27 PM
do url.resolveScript anyways
e
ec
07/20/2023, 6:30 PM
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
Corey Schwoebel
07/20/2023, 6:32 PM
I just found an old client script that's still deployed where I used it, so I guess it does, yeah.
e
ec
07/20/2023, 6:32 PM
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.