Is it possible to change subject of Report by E-mail?

gandhi_nklgandhi_nkl Member Posts: 44
edited 2012-08-17 in NAV Three Tier
Hi All,

while generating as report by mail.

Example:

I am generating Sales order confirmation report in preview mode and trying to send by mail like below option.

File->Send->Report by E-Mail…

Its opening outlook with subject of report name(Order Confirmation). but I want to change the subject name like (Invoice No. %1 and Customer Name %2.)

Is it Possible? And how?

Can anyone help me…
Thanks & Regards,
Muthu

Answers

  • mohana_cse06mohana_cse06 Member Posts: 5,504
    I guess it is using the report Name as Subject.

    You can create your own mail using Mail Codeunit..
  • gandhi_nklgandhi_nkl Member Posts: 44
    I guess it is using the report Name as Subject.

    You can create your own mail using Mail Codeunit..


    Hi,

    yes it is taking Report name.

    using mail codeunit we can do. but customer wants like using default report by E-mail option? is it possbile? if yes, how?
    Thanks & Regards,
    Muthu
  • TroelshTroelsh Member, Microsoft Employee Posts: 79
    That will not be possible as this is set by platform code.

    What would you have liked to be able to write in the subject line ?

    Troels Bent Hansen
    Senior Program Manager
    Microsoft Dynamics NAV


    ****** This posting is provided "AS IS" with no warranties, and confers no rights ******
  • gandhi_nklgandhi_nkl Member Posts: 44
    Troelsh wrote:
    That will not be possible as this is set by platform code.

    What would you have liked to be able to write in the subject line ?

    Hi,

    Thanks for you all inputs...

    I want to write subject line like order no. and customer name.

    let me do this with customization using mail codeunit.
    Thanks & Regards,
    Muthu
  • TroelshTroelsh Member, Microsoft Employee Posts: 79
    From a specific customer Card the subject line will be as e.g. "Edit - Customer Card - 20312912 ∙ Highlights Electronics Sdn Bhd"
    From a sales it becomes e.g. "Edit - Sales Order - 101017 ∙ Ravel Møbler"

    When on a list of customers - we write "customers" in the subject

    Except from the "Edit" part of the subject - I think you already got what you are asking for.

    Troels Bent Hansen
    Senior Program Manager
    Microsoft Dynamics NAV


    ****** This posting is provided "AS IS" with no warranties, and confers no rights ******
  • clauslclausl Member Posts: 455
    I suggest you create an action on the page. This action will then create a PDF of the report and attach it to an e-mail.

    A code example on how this is done can be found here on my SkyDrive: http://sdrv.ms/R6cP88
    And yes Mail Codeunit is used so you have full control of the Subject line.

    /Claus Lundstrøm
    Claus Lundstrøm | MVP | Senior Product Manager | Continia.com
    I'm blogging here:http://mibuso.com/blogs/clausl and used to blog here: http://blogs.msdn.com/nav
    I'm also offering RDLC Report Training, ping me if you are interested. Thanks to the 700 NAV developers that have now already been at my training. You know you can always call if you have any RDLC report issues :-)
Sign In or Register to comment.