Home > Dynamics Ax > Dynamics Ax in Outlook Part – II

Dynamics Ax in Outlook Part – II

 Displaying Dynamics Ax – EP –Role center pages in Outlook

This article is continuation of my previous article in this blog is Dynamics Ax in Outlook Part – I (Creation of Dynamics Ax – Customer from Outlook).  http://paruvella.spaces.live.com/blog/cns!F2EC589E221A4DB0!193.entry .

Now in this example I am giving the example C# code for displaying the Dynamics –Ax –EP –Role Center pages in MS –Outlook.

See the following figure EP –Role center pages displayed in my mail box.

Add the following C# code in this class ThisAddIn.cs

       private void CreateCustomerFolder()


            Outlook.NameSpace session = this.Application.Session;


            Outlook.MAPIFolder cust = (Outlook.MAPIFolder)session.GetDefaultFolder(Microsoft.Office.Interop.Outlook.OlDefaultFolders.olFolderInbox).Parent;


            Outlook.MAPIFolder custCreate = cust.Folders.Add("Customer", Microsoft.Office.Interop.Outlook.OlDefaultFolders.olFolderInbox);


            custCreate.WebViewAllowNavigation = true;

            //This is our EP site

            custCreate.WebViewURL = "http://ban-srv-ax:86/sites/DynamicsAx";

            custCreate.WebViewOn = true;



And call this method from the following method

       private void ThisAddIn_Startup(object sender, System.EventArgs e)




            CreateCustomerFolder();   //See here I am calling that method here.


Compile the entire application and build. Run the application now you will see the new folder called Customer in the mail box hierarchy. Click on the customer now we can see the Role center page in outlook.

What a great thing, Partynow we can do everything related to Dynamics Ax, from MS –Outlook. Sarcastic

I had done all these application by referring MSDN. My heart full and great full thanks to MSDN.Red heart


Categories: Dynamics Ax
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: