简体   繁体   中英

Can't access Restlet File in Netsuite?

I created Employee account called user under Netsuite admin account

When i call restlet method using user account credentials doesn't give any response.(empty response)

but when i call restlet method with same request using Admin account credentials it returns the expected response.

My Suspect: user account credentials can't access the restlet script because it doesn't give any response if i give correct script id & deployment id it return empty response. if i give wrong script id or deployment id it return the following output:

Array
(
[error] => Array
    (
        [code] => SSS_INVALID_SCRIPTLET_ID
        [message] => That Suitelet is invalid, disabled, or no longer exists.
    )

)

Note: Here Admin & User has the same Role. Restlet script installed in Admin account using Bundle.

Any idea why i can't access the restlet using user account credentials?

您需要确保在“脚本部署”记录中,将“状态”字段设置为“已发布”,并在“受众”子列表中,选择要使Restlet可供使用的员工和/或角色。

Based on the error, the issue appears to be the Suitelet being called by the RESTlet and not the RESTlet itself. Make sure that the deployment of the Suitelet being called is released as @michoel said.

Make a copy of the deployment ensuring the Audience, Roles and Released Status are kept and try accessing the RESTlet from the new deployment.

I have experienced issues like the one you mentioned, I suspect Netsuite caches the permissions.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM