Skip to main content

Notifications

Microsoft Dynamics NAV (Archived)

Linking NAV emails with outlook

Posted on by Microsoft Employee

Hey Guys, i have created a page for sending an email and an action linked with it , when i click the respective button it should open the email in outlook, but it isnt functioning right now . i have called only CreateMessage of codeunit 397 . Any suggestions ??? Thank you in advance

*This post is locked for comments

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Linking NAV emails with outlook

    Thank you so much . I tried it again and it worked. Thanks :)))))

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Linking NAV emails with outlook

    Microsoft Outlook for Office 365 MSO (16.0.11231.20164) 32 bit . Sorry i didnt say its Business Central

  • I Gusti Made Ari Profile Picture
    I Gusti Made Ari 3,594 on at
    RE: Linking NAV emails with outlook

    what is your outlook version ?

    for NAV 2018 , for outlook integration minimum version is office 2013 SP1.

    docs.microsoft.com/.../system-requirements-for-microsoft-dynamics-nav

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Linking NAV emails with outlook

    I just called TryInitializeOutlook but it printed  False as it is a boolean.

    Iinstalled sopmething of outlook from Nav Setup. Is there anything else i have to do ?

  • I Gusti Made Ari Profile Picture
    I Gusti Made Ari 3,594 on at
    RE: Linking NAV emails with outlook

    what is the error ?

    have you installed the outlook add in ?

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Linking NAV emails with outlook

    Firstly ,thank you for responding

    I have already used initialize function but it prints me error ,can't even initialize outlook.

  • Verified answer
    I Gusti Made Ari Profile Picture
    I Gusti Made Ari 3,594 on at
    RE: Linking NAV emails with outlook

    Please try following code :

    IF Mail.TryInitializeOutlook THEN

      Mail.NewMessage(ToAddresses,CCAddresses,BCCAddresses,Subject,BodyText,AttachFileNameText,TRUE);

    ELSE

     ERROR('Outlook cannot be started');

    Name DataType Subtype Length

    ToAddresses Text

    CCAddresses Text

    BCCAddresses Text

    Subject Text

    BodyText Text

    AttachFileNameText Text

    Mail  Codeunit 397

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,240 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,149 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans