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

Notifications

Announcements

No record found.

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,710 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,710 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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#1
Priya_K Profile Picture

Priya_K 4

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans