How to allow file upload in Microsoft Dynamics CRM

2019-09-11 05:32发布

问题:

Under Project service:

And under project template:

There is a possibility of customizing forms in Microsoft Dynamics CRM, through Customize entity:

Also, seems like we can add a new field as well:

to forms:

I see that there is no file field in the forms:

Is there a way to allow file upload in Microsoft Dynamics CRM forms?

Maybe programmatically?

回答1:

If you have Notes enabled on the entity, you can upload files via the notes component on the form.

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.

Picture guide: 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. That way you won't use up all your expensive CRM storage with files.



回答2:

The standard option for doing a file upload is creating a note (entity annotation) which can have a file attached to it.

Alternatively you can create a custom HTML web resource handling the upload for you. This requires common HTML/Javascript techniques, as discussed elsewhere on StackOverflow.



回答3:

From my experience, doing what Henk van Boeijen mentioned (custom HTML/Js) will be more appealing in terms of UI. You just need to enable notes, and after that, use REST endpoint. Example is here: http://scaleablesolutions.com/upload-notes-attachments-using-javascript-and-rest/