For a customer I have made a solution so files can be imported into a BLOB in Navision. The most files that will be imported are emails from outlook.
Now the customer goes to outlook and saves a email to a msg-file. After that he goes to Navision and imports the msg-file. Finally the msg-file will be deleted.
I wonder if it's possible through automation to do this in 1 step from Navision.
My idea is to push a button in Navision, show an overview with outlook-emails and after selection import an email as a msg-file into Navision.
Had someone has experience with this?
Thanks in advance.
0
Answers
I found some C# code and it's working here..
Original link -> .NET Connector for Microsoft Outlook, vb code is also available
The idea:
1. Get header data of the Inbox mails from Outlook in XML.
2. Display the XML in Dynamics NAV (import in temp table and show on form).
3. With the messageID you receive the mail as a file.
4. Import the file in Dynamics NAV, and youre done..
Known issues:
1. The user receives a confirm in Outlook to allow access.
2. Receiving the mail as a file is slow b/c it loops the mailbox(try using find).
Here are my modifications:
How I use it:
Combine it in a automation control for NAV
Link
And you'r done.
Hope It helped you..
Rvduuren
Nice to hear from you. It's a long time ago.
Thanks for your answer. I'm gonna try to work with this solution.
Greetings,
Elwin.