简体   繁体   English

如何允许以Microsoft Dynamics CRM表单上传文件?

[英]How to allow file upload in Microsoft Dynamics CRM forms?

Under Project service: 在项目服务下:

CRM项目服务

And under project template: 在项目模板下:

项目模板

There is a possibility of customizing forms in Microsoft Dynamics CRM , through Customize entity: 通过自定义实体,可以在Microsoft Dynamics CRM中自定义表单:

定制实体

Also, seems like we can add a new field as well: 另外,似乎我们也可以添加一个新字段:

添加一个新字段

to forms: 形成:

Dynamics CRM表格

I see that there is no file field in the forms: 我看到表单中没有文件字段:

Dynamics CRM表单中的数据类型

Is there a way to allow file upload in Microsoft Dynamics CRM forms? 有没有一种方法可以允许在Microsoft Dynamics CRM表单中上传文件?

Maybe programmatically? 也许以编程方式?

If you have Notes enabled on the entity, you can upload files via the notes component on the form. 如果您在实体上启用了Notes,则可以通过表单上的notes组件上载文件。

To enable it, go to the entity customization and check the Notes box, and then add notes to your entity form. 要启用它,请转到实体定制并选中“注释”框,然后将注释添加到您的实体表单中。 Now you can upload files on the entity form by adding a new note on the record, through the newly added Notes component. 现在,您可以通过新添加的Notes组件在记录上添加新注释,从而在实体表单上上传文件。

Picture guide: http://imgur.com/a/Kb7Xi 图片指南: http//imgur.com/a/Kb7Xi

An alternative is using something like SharePoint instead to host your files, and using the standard CRM/SharePoint integration to access them in CRM. 一种替代方法是使用SharePoint之类的东西来托管文件,并使用标准CRM / SharePoint集成在CRM中访问它们。 That way you won't use up all your expensive CRM storage with files. 这样,您就不会用完所有昂贵的CRM存储和文件。

The standard option for doing a file upload is creating a note (entity annotation ) which can have a file attached to it. 进行文件上传的标准选项是创建一个注释(实体annotation ),该annotation可以附加有文件。

Alternatively you can create a custom HTML web resource handling the upload for you. 或者,您可以创建一个自定义HTML Web资源来为您处理上传。 This requires common HTML/Javascript techniques, as discussed elsewhere on StackOverflow . 这需要常见的HTML / Javascript技术,如StackOverflow上其他地方所讨论的。

From my experience, doing what Henk van Boeijen mentioned (custom HTML/Js) will be more appealing in terms of UI. 根据我的经验,就UI而言,执行Henk van Boeijen所说的(自定义HTML / Js)将更具吸引力。 You just need to enable notes, and after that, use REST endpoint. 您只需要启用注释,然后使用REST端点即可。 Example is here: http://scaleablesolutions.com/upload-notes-attachments-using-javascript-and-rest/ 示例在这里: http : //scaleablesolutions.com/upload-notes-attachments-using-javascript-and-rest/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM