Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

HTML WEB RESOURCE

(0) ShareShare
ReportReport
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
    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
    70 on at
    RE: HTML WEB RESOURCE

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

  • Piyush Paliwal Profile Picture
    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
    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
    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

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Adis Hodzic – Community Spotlight

We are honored to recognize Adis Hodzic as our May 2025 Community…

Kudos to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Microsoft Dynamics CRM (Archived)

#1
Mohamed Amine Mahmoudi Profile Picture

Mohamed Amine Mahmoudi 83 Super User 2025 Season 1

#2
Community Member Profile Picture

Community Member 52

#3
Victor Onyebuchi Profile Picture

Victor Onyebuchi 6

Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans