web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics NAV (Archived)

Outlook Interface with Nav 2013 client not working when using NewMessage

(0) ShareShare
ReportReport
Posted on by 5,136

Help! When I test the NewMessage function from codeunit 397 Mail in the Nav 2013 client  workstation, it doesn't give me an error message but it also doesn't create the Outlook message.  This Newmessage works in the Nav 2013 client installed with the Nav 2013 server.  How come it doesn't work in the Nav 2013 client workstation install only?  Did I miss a setup add in?  I made sure I installed the Outlook addin which is why I can see my outlook inbox from the Home screen of the Nav 2013 client workstation.  But the newmessage function doesn't work!  Any ideas?

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    keoma Profile Picture
    32,729 on at

    hi,

    on the client workstation you need:

    * Outlook

    * the assembly microsoft.dynamics.nav.integration.office in the addins folder of the rtc client.

    * check also the .net framework version

    for further troubleshooting follow:

    msdn.microsoft.com/.../dd983823(v=nav.70).aspx

  • mbr Profile Picture
    5,136 on at

    Hi Jonathan....I made sure Outlook 32-bit is installed.  I also see the Microsoft.dynamics.nav.integration.office dll is in the addins folder (it's in office subfolder) of 'role tailored client' folder in c:/program files (86).  .net framework version installed is 4.5.  But it still doesn't work.  None of the workstations with only Nav client installed works.  It only works in the pcs where I have Nav server and Nav client installed.  Any other ideas/pointers?

  • Suggested answer
    keoma Profile Picture
    32,729 on at

    hi,

    have you set the variable property runonclient to yes?

  • mbr Profile Picture
    5,136 on at

    WHere do I set this?

  • Suggested answer
    keoma Profile Picture
    32,729 on at

    hi,

    before running the NewMessage function (calling the CU or report?) start the outlook client on the client workstation! after that it should work. 

    acc. property runonclient: menu-->view-->properties (only usable with dotnet variables)

  • Verified answer
    keoma Profile Picture
    32,729 on at

    hi,

    other option: try it with my code from community.dynamics.com/.../143837.aspx instead, using the assembly Microsoft.Office.Interop.Outlook and there set the dotnet variables property runonclient to yes.

  • mbr Profile Picture
    5,136 on at

    Thanks Jonathan! You're the best! I can't wait to try this.  I couldn't set the runonclient when using the 397 codeunit.  But perhaps this will work.  I need this anyway so I can change the sender address! Thank you thank you!!!!

  • Verified answer
    keoma Profile Picture
    32,729 on at

    hi,

    My pleasure! :-)

    runonclient property is only available for dotnet variables (little mistake ;-) )

    as i wrote before: The Mail.NewMessage function also works, but the Outlook Client needs to be started before calling that function on the workstation (is a little strange, but works. have tested it.)

  • Community Member Profile Picture
    on at

    Help! Mail.NewMessage function is working perfectly fine and on click it opens my email in the outlook and this is what I want. But there's a problem in it. If the Outlook app is closed then it opens the dialog box and on the click email can be sent easily but if the outlook is already opened, it doesn't happen. 

    What to do in case when Outlook is already opened?

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics NAV (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans