Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Microsoft Dynamics NAV (Archived)

Linking NAV emails with outlook

(0) ShareShare
ReportReport
Posted on by

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
    on at
    RE: Linking NAV emails with outlook

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

  • Community Member Profile Picture
    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
    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
    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
    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
    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
    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

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Adis Hodzic – Community Spotlight

We are honored to recognize Adis Hodzic as our May 2025 Community…

Leaderboard > Microsoft Dynamics NAV (Archived)

#1
Sohail Ahmed Profile Picture

Sohail Ahmed 2

#1
mmv Profile Picture

mmv 2

#1
Amol Salvi Profile Picture

Amol Salvi 2

Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans