Quantcast
Channel: Microsoft Dynamics NAV
Viewing all articles
Browse latest Browse all 64865

Blog Post: Mail Sending Option in NAV 2017 with Cover Letter & Attachments –Part 2

$
0
0
Continuing from previous post, further in next step we will apply same feature discussed in earlier post to our custom documents and learn where all places we need to take care development to get it working. If you have missed First Part you can find here. Mail Sending Option in NAV 2017 with Cover Letter & Attachments –Part 1 In my Example I am using Policy Module: I am using my Custom Table Policy where Policy Holder is setup as Customer, also few general details related to policy is stored. In nutshell we are concentration on Sending mail to customer as we have done in previous post for sending Invoice details to customer. Step-1: In my Policy Table I have added 2 Function as below: SendRecords() IF DocumentSendingProfile.LookupProfile(“Policy Holder No.”,FALSE) THEN SendProfile(DocumentSendingProfile); SendProfile(VAR DocumentSendingProfile : Record “Document Sending Profile”) DocumentSendingProfile.Send( DummyReportSelections.Usage::”Policy Issue”,Rec,”Document No.”,”Policy Holder No.”, DocTxt,FIELDNO(“Policy Holder No.”),FIELDNO(“Document No.”)); Step-2: In Table 77 Report Selections add new option to usage field Step-3: In Table 60 Document Sending Profile add below customization. Add Text Constants Update below function as: Step-4: In Table 9657 Custom Report Selection add below customizations. Step-5: In Page 9657 Custom Report Selection add below customization. Step-6: Create 2 Reports one for Mail Body and one for Attachment. You can use same report as attachment too, it depends on your requirement. Step-7: In Page Policy add below customization. Step-8: Setup your report Selection as below: Now you are good to go. Test your solution/ customization. This is just a small idea, many lots can be done depending upon your requirements.

Viewing all articles
Browse latest Browse all 64865

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>