Dynamics crm 2011 将所有用户都可以访问的文档存储在CRM中
我在一个案例的笔记中保存了一些文档模板。 我需要获得该文档的下载url,我将在其他需要该url的插件中使用该url 现在问题是,, 我上传了一份文件到笔记部分, 通过下载并检查下载url,我得到了它的下载url 当我把它作为插件的输入时,它只对上传它的用户有效 它说,对于其他用户来说,它是不可访问的Dynamics crm 2011 将所有用户都可以访问的文档存储在CRM中,dynamics-crm-2011,dynamics-crm,dynamics-crm-2013,microsoft-dynamics,dynamics-crm-2016,Dynamics Crm 2011,Dynamics Crm,Dynamics Crm 2013,Microsoft Dynamics,Dynamics Crm 2016,我在一个案例的笔记中保存了一些文档模板。 我需要获得该文档的下载url,我将在其他需要该url的插件中使用该url 现在问题是,, 我上传了一份文件到笔记部分, 通过下载并检查下载url,我得到了它的下载url 当我把它作为插件的输入时,它只对上传它的用户有效 它说,对于其他用户来说,它是不可访问的 现在,我可以在CRM中的何处上载文档,以便所有用户都可以查看和下载该文档?您需要获取有效的WRPCTokenUrl。与存储直接URL以获取不包含其他用户的有效WRPCTokenUrl的文档不同,您可
现在,我可以在CRM中的何处上载文档,以便所有用户都可以查看和下载该文档?您需要获取有效的WRPCTokenUrl。与存储直接URL以获取不包含其他用户的有效WRPCTokenUrl的文档不同,您可以存储注释的guid,然后在需要时获取有效的URL 注释guid可用于获取有效的下载URL,如中所述。可在此处查看该页面中的相关代码片段:
function getDocumentUrl(annotId) {
var URL = urlbase + '/userdefined/edit.aspx?etc=5&id={' + annotId + '}';
var docUrl;
// get the security token to build the href link. if the token cannot be found,
// a null value is returned
$.get(URL, function (data) {
// get the form data via the 'URL'
data = $.parseHTML(data);
// locate the security element
var securityTokenElement = $(data).find("[WRPCTokenUrl]");
if (securityTokenElement) { // if the security element was found on the Note form
// locate the security token within the security element
var securityTokenUrl = SecurityTokenElement.attr("WRPCTokenUrl");
// if the security token is located, build the url
if (securityTokenUrl) {
docUrl = urlbase + "/Activities/Attachment/download.aspx?AttachmentType=5&AttachmentId={" +
annotId + "}&IsNotesTabAttachment=undefined" + SecurityTokenUrl;
}
}
});
return docUrl;
}
您需要获取有效的WRPCTokenUrl。与存储直接URL以获取不包含其他用户的有效WRPCTokenUrl的文档不同,您可以存储注释的guid,然后在需要时获取有效的URL 注释guid可用于获取有效的下载URL,如中所述。可在此处查看该页面中的相关代码片段:
function getDocumentUrl(annotId) {
var URL = urlbase + '/userdefined/edit.aspx?etc=5&id={' + annotId + '}';
var docUrl;
// get the security token to build the href link. if the token cannot be found,
// a null value is returned
$.get(URL, function (data) {
// get the form data via the 'URL'
data = $.parseHTML(data);
// locate the security element
var securityTokenElement = $(data).find("[WRPCTokenUrl]");
if (securityTokenElement) { // if the security element was found on the Note form
// locate the security token within the security element
var securityTokenUrl = SecurityTokenElement.attr("WRPCTokenUrl");
// if the security token is located, build the url
if (securityTokenUrl) {
docUrl = urlbase + "/Activities/Attachment/download.aspx?AttachmentType=5&AttachmentId={" +
annotId + "}&IsNotesTabAttachment=undefined" + SecurityTokenUrl;
}
}
});
return docUrl;
}
如果您正试图通过使用一个简单的web服务调用来访问文档数据,那么有一种更简单的方法来访问文档数据。我不会尝试通过URL访问文档数据,我不认为这是真正的目的 退房
如果您正试图通过使用一个简单的web服务调用来访问文档数据,那么有一种更简单的方法来访问文档数据。我不会尝试通过URL访问文档数据,我不认为这是真正的目的 退房
您的安全模型设置如何?我没有对默认安全模型进行任何更改,即使具有相同安全角色的人也无法使用链接下载,因为令牌更改显示是您的安全模型设置?我没有对默认安全模型进行任何更改,即使具有相同安全角色的用户也无法使用令牌更改时的链接进行下载