Is there any way to set execution role on a restle...
# suitescript
m
Is there any way to set execution role on a restlet call from a client script? I saw this stack overflow article but setting the role id is not making a difference https://stackoverflow.com/questions/47354416/netsuite-restlet-run-as-role
Copy code
https.post.promise({
    url: options.restletUrl,
    body: {
        command: "checkDuplicates",
        values: values,
    },
    headers: {
        "roleid": 3,
        "roleId": 3,
        "role_id": 3,
        "ROLEID": 3,
    },
})
e
I don’t believe this is possible.
s
If you need to execute backend code as a role other than the currently logged in role, a suitelet can be an option. Maybe SSP pages as well, not sure on that.
m
Yeah I'm moving my restlets to suitelets. Thanks!