本地 CRM 2013:仅当用户在记录中选择文档按钮时才创建共享点文档位置

CRM 2013 on premise: Create sharepoint document location only when user selects on documents button at the record

目前,我的插件会在创建帐户记录时创建 SharePoint 位置,但我想避免创建不必要的 SharePoint 位置,即 site/folder,因此仅当用户单击“文档”菜单(或可能是某些自定义按钮)时应创建 SharePoint 位置。

我可以这样做吗?如果是,怎么做?


现在我可以使用自定义按钮创建 SharePoint 位置。但是现在要求是在导航项"Documents"上创建它。我无法绑定文档导航项的 Click 事件。如果我尝试

document.getelementbyid(item.getId()).onclick = function () {
    calljsfunction()
    }

我得到

的错误
There was an error with this field's customized event
Field:window
Event:onload
Error:undefined

2 个步骤:

1.Write 创建 DocumentLocation 的 CustomAction 2.Call 它来自 javascript,由功能区中的 CustomCommand 执行

有关详细信息,请参阅此 post: https://deepakexploring.wordpress.com/2013/10/23/actions-in-crm-2013/

如果您需要更多解释,请添加评论..