<@UK4FT37KL> If you need to call something from wi...
# suitescript
a
@zach If you need to call something from within NetSuite is better to make it a Suitelet... a RESTlet will need a lot more of setup in both sides... server(the restlet) and client(your call...)
z
I’m logging integration errors in NetSuite, and I want to auto retry to hit the RESTlet from a button on the custom integration error record
hence, my goal to avoid making a new Suitelet for each of the RESTlets that might be used
b
if you are doing client side code, use the internal url of the restlet
z
i get the following error when i try that:
The URL must be a fully qualified HTTPS URL
b
where are you doing this and with what code
z
i’m testing in a suitelet right now
Copy code
function onRequest(context) {
        var internalUrl = url.resolveScript({
            scriptId: 'customscript2894',
            deploymentId: 'customdeploy1'
        });

        var result = https.get({
            url: internalUrl
        });
        log.debug("result", result);
    }
b
thats not clientside
z
are you saying it has to be a client script?
b
correct, sounded like thats what you were describing since you wanted a button
z
ah i was going to do it from a WFA script
but was testing in a suitelet
thanks! will give that a try