I am having a separate issue with Email Logging now.
In marketing Setup you set the Queue/Storagepath as it was in Nav2015.
There are NEW fields now however for setting up the URL for exchange, and LOG IN Credentials.
If I leave the new Fields blank I CAN drill into the Queue/Storage Path and see all my "Public Folders".
If I fill the new Fields in incorrectly, I can not.
If I fill them in correctly, I CAN.
And when I select Queue/Storage Paths and use the Function "Validate Email Logging Setup" everything works fine!
NOW THE PROBLEM:
When I run Codeunit 5064 it says the folders do not exist. And I simply can not figure out why. The only thing I can see is that Marketting Setup Page 5094 uses a DotNet variable called Credentials "System.Net.NetworkCredential" while Codeunit 5064 used a variable called WebCredentials "Microsoft.Exchange.WebServices.Data.WebCredentials"
My error then comes here:
SetErrorContext(Text103);
IF NOT ExchangeWebServicesServer.GetEmailFolder(MarketingSetup.GetQueueFolderUID,QueueFolder) THEN
ERROR(Text002,MarketingSetup."Queue Folder Path");
We have Microsoft Exchange Server 2010 and do not have Microsoft Exchange Online.
In marketing Setup you set the Queue/Storagepath as it was in Nav2015.
There are NEW fields now however for setting up the URL for exchange, and LOG IN Credentials.
If I leave the new Fields blank I CAN drill into the Queue/Storage Path and see all my "Public Folders".
If I fill the new Fields in incorrectly, I can not.
If I fill them in correctly, I CAN.
And when I select Queue/Storage Paths and use the Function "Validate Email Logging Setup" everything works fine!
NOW THE PROBLEM:
When I run Codeunit 5064 it says the folders do not exist. And I simply can not figure out why. The only thing I can see is that Marketting Setup Page 5094 uses a DotNet variable called Credentials "System.Net.NetworkCredential" while Codeunit 5064 used a variable called WebCredentials "Microsoft.Exchange.WebServices.Data.WebCredentials"
My error then comes here:
SetErrorContext(Text103);
IF NOT ExchangeWebServicesServer.GetEmailFolder(MarketingSetup.GetQueueFolderUID,QueueFolder) THEN
ERROR(Text002,MarketingSetup."Queue Folder Path");
We have Microsoft Exchange Server 2010 and do not have Microsoft Exchange Online.