Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

HTML WEB RESOURCE

Posted on by 70

Hi,

I have a requirement in which I have to create a custom html control onto email entity. When I click on this control I have option to attach file.

Till now , I have implemented Html web Resource and that popup is coming to Attach the file. But now I have to show that attachment onto CRM page i.e in the Attcahments Grid of the Email Entity.

Can anyone please tell how to implement this?

*This post is locked for comments

  • Suggested answer
    Piyush Paliwal Profile Picture
    Piyush Paliwal 817 on at
    RE: HTML WEB RESOURCE

    Ok, I feel you should go back and question the requirement itself and get the answer of why because it is already a robust solution that is available. You are not bringing in additional value to the system instead further consuming resources which can be utilized for something else but I would let this decision be your's.

    As for the question here are a few links which will help you get this thing done. The idea here is to create an object for the ActivityMimeAttachment entity and attach this entity record to your original email activity.

    This is the best resource - bettercrm.blog/.../how-to-create-an-attachment-using-webapi-in-dynamics-365

    A few more links

    scaleablesolutions.com/upload-notes-attachments-using-javascript-and-rest

    See the reply from Nithya on this thread - community.dynamics.com/.../242785

    Let me know if you have any other question. Also don't forget to mark this response as verified if this helps you resolve the issue.

  • priyanka_24 Profile Picture
    priyanka_24 70 on at
    RE: HTML WEB RESOURCE

    Yes, absolutely but no choice, that's the requirement I have to implement.

  • Piyush Paliwal Profile Picture
    Piyush Paliwal 817 on at
    RE: HTML WEB RESOURCE

    That's what I am trying to understand as to why do you want to rebuild something complex which is already present as an option.

  • priyanka_24 Profile Picture
    priyanka_24 70 on at
    RE: HTML WEB RESOURCE

    Thanks Piyush for replying.

    You are absolutely right but I need this same functionality through a custom HTML control.

    Can you please tell how to fetch data from HTML onto CRM page ?

  • Suggested answer
    Piyush Paliwal Profile Picture
    Piyush Paliwal 817 on at
    RE: HTML WEB RESOURCE

    Hey Priyanka,

    Do you mind me asking the need to implement a custom HTML resource for adding attachments? This functionality is already existing on the platform. Take a look at the screenshot from Out of Box email entity.

    email_5F00_attachment.PNG

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,269 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans