Outlook in Navision

imclever1205imclever1205 Member Posts: 94
edited 2014-05-23 in NAV Three Tier
Hi Guys ,


I want to create a form on which there will be button that will Open Outlook to create a new mail ,is that possible ? If yes can you please redirect where to find it ?

Thank you

Answers

  • kinekine Member Posts: 12,562
    See codeunit 397 - Mail.
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
  • imclever1205imclever1205 Member Posts: 94
    Yes I read about that and even tried taking it as reference but it didnt work .
    At first when you run it ,it says that outlook should be your default mail client.but even after setting it,it doesnt work
  • mohana_cse06mohana_cse06 Member Posts: 5,504
    Are you getting any error?
    Can you show the code which you are trying?
  • imclever1205imclever1205 Member Posts: 94
    IF ISCLEAR(outlookapplication) THEN
      CREATE(outlookapplication,FALSE,TRUE);
    
    
    outlookapplication := outlookapplication.Application;
    OutlookMailItem:=outlookapplication.CreateItem(0);
    
    OutlookMailItem."To" := '';
    OutlookMailItem.CC := '';
    OutlookMailItem.Subject := '';
    OutlookMailItem.Body := '';
    OutlookMailItem.Display(TRUE);
    

    Actually the code works but I miserably forgot to add this particular ](*,) line of code at first :
    OutlookMailItem:=outlookapplication.CreateItem(0);

    Problem Solved

    Thank you guys !
Sign In or Register to comment.