Skip to main content

Notifications

Announcements

No record found.

Dynamics 365 general forum

Send mail with attachment in D365

Posted on by 30

Hi Experts,

Is there anyway to send out a mail with attachment in D365, such as I upload an excel to Sales order as attachment, then click a button, the function for this button is: capture some info from Sales order, and send out a email, and the email need attached the excel that uploaded in this SO.

Is it possible in D365?

  • Suggested answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Send mail with attachment in D365

    Yes, it is possible. I implemented similar requirement.

    1. You need to put custom button a ribbon - Ribbon Bench for putting a custom button, call a javascript from a button.

    2. Security based visibility of the button - If something you would like to.

    3. Click on that button - Create a Javascript which can call an Action - Research on how to call an "Action" from Javascript.

    4. Action Input parameters will be RecordID of that Entity and CWF.

    4. Create custom workflow activity which will Read Values of that Record from which the Action was called.

    5. In the CWF, after getting the Record GUID, query Annotation entity, fetch the Attached excel file, if more than one attched filter by FirstorDefault().

    6. You can use email template stored in CRM if not create your on email body and other required things and send it out.

    All you need is a Custom Ribbon, Action and Custom Workflow Activity.

    Thanks.

  • Suggested answer
    DanielBai Profile Picture
    DanielBai 30 on at
    RE: Send mail with attachment in D365

    Thanks

  • Johnny Gong Profile Picture
    Johnny Gong 6,482 on at
    RE: Send mail with attachment in D365

    Hi Partner,

    If your are using D365 Online , you could refer to the following post from Aric about Creating Email Message with Attachment from a Note:

    community.dynamics.com/.../create-email-message-with-attachment-from-a-note

    Similar question about D365 email with attachments through Plugin

    community.dynamics.com/.../262723

    Hope it would help.

    Regards

    Johnny

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

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans