web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Print management - Email body

(0) ShareShare
ReportReport
Posted on by

I have a requirement where I need to send mail with email body using SRSPrintDestinationSettingsForm form.

Is there a way to add text to the body of the (generated) email?

System I am using is 2012 R3.

Kernel version 6.3.6000.214

Application version 6.3.6000.133

*This post is locked for comments

I have the same question (0)
  • Verified answer
    Vilmos Kintera Profile Picture
    46,149 on at

    You must customize the standard AX frameworks for print management and report sending for this. Here is one solution for using e-mail templates shared on this forum:

    [View:https://community.dynamics.com/ax/f/33/t/181473:750:50]

    Also Lachlan had similar requests and have shared a proof-of-concept with some updates too:

    [View:https://organicax.com/2014/11/26/adding-message-body-text-to-email-destination-for-reports/:750:50]

    [View:https://organicax.com/2015/04/20/send-report-via-email-additional-parameters/:750:50]

    You might have to spend some time to set it up, test, and possibly expand those solutions to cover your requirements.

    Or there are paid solutions too from ISVs:

    [View:http://www.dynamics-ax-addons.com/en/add_ons/report_mailer.html:750:50]

  • Verified answer
    Sukrut Parab Profile Picture
    71,735 Moderator on at

    You can use SRSPrintDestinationSettings  for that. See below syntax.

    SRSPrintDestinationSettings .parmEMailContract().parmBody(body);


  • Community Member Profile Picture
    on at

    Hi Sukrut,

    Can you please help me in the steps.

  • Community Member Profile Picture
    on at

    Hi Vilmos,

    The first link you shared was  about to edit Classes\PrintDestinationSettings. But I don't find this class in my system but found SrsPrintDestinationSettings. I have started the customization but I am not able to figure out the data entered over SrsPrintDestinationSettingsForm like subject, email address, where dose its actually storing the data ?

    Can you please help me with the same.

  • Verified answer
    Chaitanya Golla Profile Picture
    17,225 on at

    Hi,

    Please follow this video(as suggested by Vilmos):

    organicax.com/.../adding-message-body-text-to-email-destination-for-reports.

    According to the video we need to modify following objects.

    Form - SRSPrintDestinationSettingsForm

    Class - SRSPrintDestinationSettings

    Class - smmOutlookEMail

  • Verified answer
    Sukrut Parab Profile Picture
    71,735 Moderator on at

    Hi Zeeshan,

    Please look at the link Provided by Chaitanya. It uses the same class I suggested above and how to read body from the control. You can easily add text you want to add to generated body and pass it to  SRSPrintDestinationSettings .parmEMailContract().parmBody(body);  method.

  • Community Member Profile Picture
    on at

    Hi Chaitanya and Sukrut,

    By following that video, I have made changes to

    SRSPrintDestinationSettingsForm

    SRSPrintDestinationSettings

    but I am not able to understand what changes i have to make on SmmOutlookEmail even in that video its not clear.

    Currently while running debugger I can see the mail body text message in SRSPrintDestinationSettings.parmEmailContract(), but its not going to mail.

    I think I am missing something to change on SmmOutlookEmail () class.

  • Suggested answer
    Vilmos Kintera Profile Picture
    46,149 on at

    Did you check their code sample linked by Lachlan in the same post? You already have all the information that you need in my first reply. We generally use this forum to provide high level guidance to steer you in a direction on how to resolve the problem on your own.

    Since these are low level framework customizations and if you are having trouble understand of what you are doing to those, maybe you should involve a more experienced developer to help you out and make you understand the details.

  • Community Member Profile Picture
    on at

    Hi Vilmos, Sukrut and Chaitanya,

    Thanks for your support and guidance.

  • babalalex Profile Picture
    411 on at

    Thanks a lot all, this thread helped me to add Body parameter into the Print Destination Setting setup.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Joris dG Profile Picture

Joris dG 5

#2
Alexey Lekanov Profile Picture

Alexey Lekanov 2

#2
Henrik Nordlöf Profile Picture

Henrik Nordlöf 2 User Group Leader

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans