Add attachment field to my custom entity (only single attachment) with upload button in online CRM RRS feed

  • Question

  • i am developing multiple custom entities, i need to add "Upload attachment" field to the entity as upload button control, i google for hours and i don't find  out of the box solution except that one for Notes section but it doesn't fit my requirements, is there any out of the box upload control i can add many times in the entity, if not there can you help me with the links to develop custom one

    Mohamed Abdeen

    Sunday, July 17, 2016 12:32 PM

All replies

  • I'm not aware of any existing solution for this. I think it would be possible to develop one; there are 2 possible approaches, but both have drawbacks:

    • From a coding perspective, using server-side code with an .aspx page is fairly simple. The problem is that you would need to host the page somewhere (it can't be hosted in Crm Online), and you would have to build an appropriate security model around it
    • A client-side web resource is probably a bit more code. You'd need to interact with the file system via the browser to access the file and it's contents (I'm assuming this is possible but I've never tried it), convert the contents to a base64 string, then write it is a note to CRM

    Microsoft CRM MVP - http://mscrmuk.blogspot.com/ http://www.excitation.co.uk

    Monday, July 18, 2016 8:54 AM