Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics AX (Archived)

Print management - Email body

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

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

  • Imdad Manik Profile Picture
    Imdad Manik 5 on at
    RE: Print management - Email body

    Hi Zeeshan Ali,

    Go to form setup form then print management form then select the document like purchase order etc. then click on the destination drop down right side arrow then configure the subject , to , cc etc,

  • babalalex Profile Picture
    babalalex 411 on at
    RE: Print management - Email body

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

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Print management - Email body

    Hi Vilmos, Sukrut and Chaitanya,

    Thanks for your support and guidance.

  • Suggested answer
    Vilmos Kintera Profile Picture
    Vilmos Kintera 46,149 on at
    RE: Print management - Email body

    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
    Community Member Microsoft Employee on at
    RE: Print management - Email body

    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.

  • Verified answer
    Sukrut Parab Profile Picture
    Sukrut Parab 71,656 Moderator on at
    RE: Print management - Email body

    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.

  • Verified answer
    Chaitanya Golla Profile Picture
    Chaitanya Golla 17,225 on at
    RE: Print management - Email body

    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

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Print management - Email body

    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.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Print management - Email body

    Hi Sukrut,

    Can you please help me in the steps.

  • Verified answer
    Sukrut Parab Profile Picture
    Sukrut Parab 71,656 Moderator on at
    RE: Print management - Email body

    You can use SRSPrintDestinationSettings  for that. See below syntax.

    SRSPrintDestinationSettings .parmEMailContract().parmBody(body);


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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Verified Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,445 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans