Skip to main content

Notifications

Finance | Project Operations, Human Resources, ...
Answered

send email when a record is inserted in d365fo

(0) ShareShare
ReportReport
Posted on by 58

Hello All,

I need a code for send email when i insert a record into the table

i have form when i created a new record an email will sent

I tried "sysmailer" class but that class was not shown up and throws error

help me to sort this

thanks

Aathil P

  • André Arnaud de Calavon Profile Picture
    André Arnaud de Cal... 291,965 Super User 2025 Season 1 on at
    RE: send email when a record is inserted in d365fo

    Hi Aathil,

    You mentioned the following: "But my task is send email via code when a record is created".  What is the business reason to add coding for something that is already possible out of the box? It would be your duty as an expert to challenge the task when there are alternatives which were now provided to you above. Why maintaining additional coding in the future when this can be avoided? The cost of ownership should be as low as possible for the customers.

  • Verified answer
    Mohit Rampal Profile Picture
    Mohit Rampal 12,552 Super User 2024 Season 1 on at
    RE: send email when a record is inserted in d365fo

    Hi Aathil, In addition to Girish suggestion, you can check this article, if you need placeholders as well in mail.

    dynamicsaxinsight.com/.../

  • GirishS Profile Picture
    GirishS 27,821 Super User 2024 Season 1 on at
    RE: send email when a record is inserted in d365fo

    Okay, check the below blow and see if it helps your case.

    https://dynamicsaxgyan.wordpress.com/2017/04/05/sending-email-using-x-code-ax7-d365-for-operations/

    Thanks,

    Girish S.

  • AXDynamics365 Profile Picture
    AXDynamics365 58 on at
    RE: send email when a record is inserted in d365fo

    thanks much bro

    But my task is send email via code when a record is created

  • Verified answer
    GirishS Profile Picture
    GirishS 27,821 Super User 2024 Season 1 on at
    RE: send email when a record is inserted in d365fo

    Hi Aathil,

    There is an option to send email without any code needed.

    On the form under options >> Create alert rule - You can select "Record has been created" event to send email when record is created.

    Refer to the below blog for detail explanation.

    https://dynamics-tips.com/how-to-use-alerts-d365-finance-and-operations/

    Thanks,

    Girish S.

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

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,965 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 230,836 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans