如何使用JSOM从SharePoint托管应用程序在主机Web上添加ScriptLink [英] How to Add a ScriptLink on the Host Web from a SharePoint Hosted App with JSOM

查看:53
本文介绍了如何使用JSOM从SharePoint托管应用程序在主机Web上添加ScriptLink的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用JSOM从SharePoint托管应用程序在Host Web上添加scriptLink.  

我找到了一些提供示例操作的文章(例如http://booden.net/JsomAddScriptLinkOnHostWeb.aspx),但是它不再起作用了.  

I'm trying to add a scriptLink on the Host web from a SharePoint hosted app using JSOM.  

I found some articles that give the samples to do this (e.g. http://booden.net/JsomAddScriptLinkOnHostWeb.aspx), but it doesn't work anymore.  

即使我已授予该应用程序的完全许可权,我仍然收到以下错误消息:

Even though I've given the full permission to the app, I still got this error message:

"请求失败:访问被拒绝.您没有执行此操作或访问此资源的权限."

还有可能这样做吗?

"Request failed: Access denied. You do not have permission to perform this action or access this resource."

Is it still possible to do this?

推荐答案

您是否使用下面的解决方案?

Did you use the solution below?

http://booden.net/download/AddScriptLinkSample.zip

还是您基于代码创建了一个新的加载项?

Or you create a new add-in and base on the code?

您对宿主网站具有管理员权限吗?

Do you have the admin permission for the host web?

最好的问候,

丹尼斯


这篇关于如何使用JSOM从SharePoint托管应用程序在主机Web上添加ScriptLink的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆