The logic is triggered from the associated client ...
# releases
s
The logic is triggered from the associated client event, and the error can be seen in the browser console.
n
Are you using an external or internal url to make the call?
s
Internal, but was old code in 1.0 transformed to 2.0
Copy code
var url = null;
n_search
    .create({
        type: 'scriptdeployment',
        filters: [n_search.createFilter({ name: 'scriptid', operator: n_search.Operator.IS, values: 'customdeploy_x_rem_rl' })],
    })
    .run()
    .each(function (result) {
        url = n_record.load({ type: result.recordType, id: result.id }).getValue('url');
        return false;
    });
Fixed with standard and now es running properly:
Copy code
let url = n_url.resolveScript({
                    scriptId: 'customscript_x_rem_rl',
                    deploymentId: 'customdeploy_x_rem_rl',
                    returnExternalUrl: false,
                    params: params
                });

                n_https.get.promise({
                    url: url,
                    headers: {'User-Agent-x': 'SuiteScript-Call'}
n
I don't usually call RESTlets from inside NS I prefer to use a SuiteLet.
s
Yeah. But the thing is, this code is running wihout problem for years. I lwould ike to know what they change internally in 2026.1.
n
I was going to suggest if you are using an external url then you probably need to look at the external roles and select "Online Form User" but you are not, so sorry, not sure I know the answer.
s
No worries, and thank you for your interest. It’s already been resolved, and it turned out to be a legacy issue related to how things were done in 1.0. Now I’m simply curious to understand why it no longer works.
netsuite 1