【发布时间】:2014-03-23 05:20:44
【问题描述】:
我按照 msdn 的说明通过 JSOM 获取 WorkflowSubscriptionService。
使用 SharePoint 2013 工作流服务客户端对象模型: http://msdn.microsoft.com/en-us/library/office/dn481315(v=office.15).aspx
var clientContext = SP.ClientContext.get_current();
var workflowServicesManager = SP.WorkflowServices.WorkflowServicesManager.newObject(clientContext, clientContext.get_web());
var workflowSubscriptionService = workflowServicesManager.getWorkflowSubscriptionService();
这三行总是抛出错误: TypeError: Object [object Object] 没有方法'get_context' 消息:“对象 [对象对象] 没有方法 'get_context'” 堆: (...) 获取堆栈:函数(){[本机代码]} 设置堆栈:函数(){[本机代码]} 原型:错误
我找不到错误。这是一个已知的错误吗?
【问题讨论】:
标签: javascript sharepoint sharepoint-2013 csom