【发布时间】:2019-01-15 03:30:22
【问题描述】:
客户目前要求我在 CRM 中创建一个功能,允许他们将附件上传到记录。然后将附件上传到 SFTP。
我想知道如何从我为上传附件而创建的 html 网络资源中检索附件。下面是我上传按钮的 html 脚本。
<html><head>
<style>
.button {
background-color: 00bfff;
border: none;
color: white;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 10px;
cursor: pointer;
border-radius: 6px;
}
</style>
<script>
function Addattachment()
{
var entityETC=10086;
var entityID =window.parent.Xrm.Page.data.entity.getId();
parent.Mscrm.RibbonActions.addFileToRecord(1, entityID)
}
</script>
<meta charset="utf-8"><meta><style type="text/css">P { margin: 0; }</style><meta><style type="text/css">P { margin: 0; }</style></head>
<body onfocusout="parent.setEmailRange();" style="overflow-wrap: break-word;">
<button class="button" onclick="Addattachment()">Attach</button>
</body></html>
仅供参考。这个问题可能会延伸到其他问题。提前致谢!
【问题讨论】:
标签: html dynamics-crm