简体   繁体   English

无法在Netsuite中访问Restlet文件?

[英]Can't access Restlet File in Netsuite?

I created Employee account called user under Netsuite admin account 我在Netsuite管理员帐户下创建了一个称为用户的员工帐户

When i call restlet method using user account credentials doesn't give any response.(empty response) 当我使用用户帐户凭据调用restlet方法时未给出任何响应。(空响应)

but when i call restlet method with same request using Admin account credentials it returns the expected response. 但是,当我使用管理员帐户凭据用相同的请求调用restlet方法时,它将返回预期的响应。

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. 我的怀疑:用户帐户凭据无法访问restlet脚本,因为如果我给出正确的脚本ID和部署ID,它不会给出任何响应,它将返回空响应。 if i give wrong script id or deployment id it return the following output: 如果我输入了错误的脚本ID或部署ID,则会返回以下输出:

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. 使用Bundle在管理员帐户中安装的Restlet脚本。

Any idea why i can't access the restlet using user account credentials? 知道为什么我无法使用用户帐户凭据访问Restlet吗?

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

Based on the error, the issue appears to be the Suitelet being called by the RESTlet and not the RESTlet itself. 基于该错误,问题似乎是RESTlet调用的Suitelet,而不是RESTlet本身。 Make sure that the deployment of the Suitelet being called is released as @michoel said. 确保按@michoel所述释放被调用的Suitelet的部署。

Make a copy of the deployment ensuring the Audience, Roles and Released Status are kept and try accessing the RESTlet from the new deployment. 复制部署以确保保留“受众”,“角色”和“发布状态”,并尝试从新部署访问RESTlet。

I have experienced issues like the one you mentioned, I suspect Netsuite caches the permissions. 我遇到了您提到的问题,我怀疑Netsuite会缓存权限。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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