Personalized Community is here!
Quickly customize your community to find the content you seek.
Choose your path Increase your proficiency with the Dynamics 365 applications that you already use and learn more about the apps that interest you. Up your game with a learning path tailored to today's Dynamics 365 masterminds and designed to prepare you for industry-recognized Microsoft certifications.
Visit Microsoft Learn
2020 Release Wave 2Discover the latest updates and new features to Dynamics 365 planned through March 2021.
Release overview guides and videos Release Plan | Preview 2020 Release Wave 2 TimelineWatch the 2020 Release Wave 1 virtual launch event
Ace your Dynamics 365 deployment with packaged services delivered by expert consultants. | Explore service offerings
Connect with the ISV success team on the latest roadmap, developer tool for AppSource certification, and ISV community engagements | ISV self-service portal
The FastTrack program is designed to help you accelerate your Dynamics 365 deployment with confidence.
FastTrack Program | Finance TechTalks | Customer Engagement TechTalks | Upcoming TechTalks
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
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:
Also Lachlan had similar requests and have shared a proof-of-concept with some updates too:
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:
You can use SRSPrintDestinationSettings for that. See below syntax.
Can you please help me in the steps.
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.
Please follow this video(as suggested by Vilmos):
According to the video we need to modify following objects.
Form - SRSPrintDestinationSettingsForm
Class - SRSPrintDestinationSettings
Class - smmOutlookEMail
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.
Hi Chaitanya and Sukrut,
By following that video, I have made changes to
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.
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.
Hi Vilmos, Sukrut and Chaitanya,
Thanks for your support and guidance.
Thanks a lot all, this thread helped me to add Body parameter into the Print Destination Setting setup.
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,
Business Applications communities