Advertisements

Programmatically Creating Outlook Appointment in Navision

Dear Friends in this post I will discuss about creating Outlook Appointment from Navision using DotNet Interop. Without going much in theory lets jump to practical approach.

To start with first we need to define some DotNet variables:

Name DataType Subtype
OutlookItemType DotNet Microsoft.Office.Interop.Outlook.OlItemType.
‘Microsoft.Office.Interop.Outlook, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c’
outlookApplication DotNet Microsoft.Office.Interop.Outlook.Application.
‘Microsoft.Office.Interop.Outlook, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c’
outlookApplicationClass DotNet Microsoft.Office.Interop.Outlook.ApplicationClass.
‘Microsoft.Office.Interop.Outlook, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c’
outlookAppItem DotNet Microsoft.Office.Interop.Outlook.AppointmentItem.
‘Microsoft.Office.Interop.Outlook, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c’

I have created a function CreateOutlookAppointment which takes parameters as:

 

OAP1

And the code as below:

OAP2

To call this function I use below code:

OAP3

The code is itself self-explanatory.

You can add other validations and parameters as per the requirement.

Imp Tip:- Make sure you set for all DotNet Variables RunOnClient = Yes.

On run the output will be as:

OAP4

 

OAP5

 

What you are waiting for, go create Appointment and have fun.

See you seen via my next post. Till then keep learning and growing in your career.

 

 

Advertisements

SMTP Setup errors while setting Office 365

Normally we see below Errors while configuring our SMTP in Navision.

Error-1

Check that your User Setup is having valid e-mail id.

Error-2

If you are using Domain make sure you are accessible to your domain. If you are outside you office make sure you are connected using your VPN.

Error-3

OFFICE 365 INTEGRATION IN NAV 2015 – Exchange Online

NEW SMTP EMAIL FLOW IN NAV.

Open SMTP Mail Setup Page, Refer below screen for path.

Office Integration-1

Click on action Apply Office 365 Server Settings.

The fields SMTP Server, SMTP Server Port and Authentication fields will be filled up automatically

Fill the User ID and Password fields based on the existing account in Office 365. You can contact your Network Admin for details.

Office Integration-2

Click “Test Email Setup” action

Office Integration-3

Office Integration-4

If everything is configured properly in Office 365 and NAV 2015 then you will get below successful message.

Office Integration-5

And below mail will be sent to Office 365 account.

Office Integration-6

After this step if we try to run action Email Confirmation from Sales Order

Office Integration-7

Then a dialog box will be opened showing from address as office 365 account.

Office Integration-8

Press OK button to send an email to required address. Edit required information.

If Edit in Outlook is checked it will open in Outlook App. You can change further mail content and recipient details before sending the mail.

Office Integration-9

Click Send to send mail from your Outbox.

Below screen shot shows that mail is sent from Office 365 account

Office Integration-10

Important

Most of the contents you find in this blog will be either inherited from MSDN or Navision Developer IT Pro Help. Some places images are also directly taken from these sites. Purpose is simple to try those stuffs and re-produce adding few things as per my understanding to make easy understanding for others and quick reference.

Here nothing under my own brand or authorship of the content. At any point of time we are just promoting Microsoft stuffs nothing personnel with same.

Hope stuffs used here will not violate any copyright agreement with them. In case by mistake or in-intestinally it happens and the Microsoft feels these should not be used Microsoft have full right to inform me about same and will be glad to take down any such content which may be violating the norms.

Purpose is to promote Navision and share with community.

FB Profile

Like FB Page

%d bloggers like this: