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
Thank you so much . I tried it again and it worked. Thanks :)))))
Microsoft Outlook for Office 365 MSO (16.0.11231.20164) 32 bit . Sorry i didnt say its Business Central
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
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 ?
what is the error ?
have you installed the outlook add in ?
Firstly ,thank you for responding
I have already used initialize function but it prints me error ,can't even initialize 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
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,240 Super User 2024 Season 2
Martin Dráb 230,149 Most Valuable Professional
nmaenpaa 101,156