Customizing Dynamics NAV
Discover different ways to customize the application to give you and your colleagues access to the features, functionality, and data that you need most.
Dynamics 365 2019 release wave 2 plan Discover the latest updates to Dynamics 365.Release Plan | Weekly Deployment Notes
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 and Operations TechTalks | Customer Engagement TechTalks | Talent TechTalks
Dear Sir,Currently I'm sending NAV PDF Matrix Report in the SMTP Mail attachment using JOB Queue. Now the client wants that the email body should be appeared exactly as Report Layout.How can I do this ?Kindly guide me in NAV 2016.Thanks,
Not clear the question... do you want to create an email body that has the same layout as your report? Not natively possible, the email message body is not a report :) you can write it programmatically with HTML but it's a task that you have to handle via code.
Thanks for instant reply.
Client wants that Email body should contain the Report Layout/Output exactly the same figure. They don't have any interest to open the attachment for the same. They want everything in Email Body.
I just want to know is there any default feature in NAV 2016 to handle this kind of requirements.
I think there might be a possibility to save the report output as WORD Document and then Send the word document as Email Body in NAV 2016....
You can attach the report or save the report as pdf or Word Document. The request is quite strange, it’s absolutely correct that the report is attached. You can try to embed the word layout, but it’s not a default feature.
Hope this helps.
Thanks for your reply.
I got your point. So, I have to move for the Coding Option (Second Option).
I have read the blog, I think it's default feature of NAV 2017.
Feature is also avilable with NAV 2016 but not completly baked, but you can do same in NAV 2016 also.
I have saved the report output as WORD Document & Convert the same into html file. Is it possible to send this html file as Email body in NAV 2016 ?
Ultimate, I've achieved the goal. Thank you everyone.
The custom code working perfectly when I execute it manually but it does not work thru Job Queue. Debugger stops at the below mentioned code (at last Line).....
FileName2 := TEMPORARYPATH + DELCHR(FORMAT(CURRENTDATETIME),'=','\/:*?"<>| ');
It throws the error message such as.....
Microsoft Dynamics NAV
A call to Microsoft.Dynamics.Nav.Integration.Office.Word.WordHelper.CallSaveAsFormat failed with this message: Value cannot be null.
Parameter name: document
I can't find the actual reason.
Business Applications communities