My 2p about ERP Solutions, Information Worker Solutions and other software products (mainly Microsoft Dynamics AX and Microsoft SharePoint).

31 May 2009

Links List May 2009

I decided to share all my interesting reads and resources month by month with my blog readers. You can find these posts by searching on the label Links. I'll try to order the resources in logical categories. If you would like to see some interesting stuff added in the next month, don't hesitate to post a comment.

So this is my Links post for May 2009.

SharePoint – General



SharePoint – Development and Programming



SharePoint – Business Data Catalog


Continue reading......

by Patrik Luca 0 comments

14 May 2009

Integration MOSS 2007 – Dynamics AX with BDC through a custom field type (part 1)


In this series of post, I’ll show how you can integrate Microsoft Office SharePoint Server 2007 with another line of business system, more specifically Dynamics AX.

The purpose is to create a custom field type, which can be added as a column to a SharePoint list. This SharePoint column renders a dropdown box with values from a Microsoft SQL Server table’s column. As such, in stead of duplicating the possible values on your SharePoint box each time new values are added in your line of business system, the available values for this SharePoint column are always in synch with your line of business system.

This first post describes how to create your connection between Microsoft Office SharePoint Server 2007 and Dynamics AX.

In a following post, I’ll describe how to create the custom field type.

In a third post, I'll describe how to fill the dropdown list dynamically for the custom field based on the url.

Create a Business Data Catalog application definition file

To be able to communicate with the Dynamics AX database, you need to create a Business Data Catalog Application Definition File, which defines the entities and associations used by the Business Data Catalog (more information: see Business Data Catalog Application Definition File).

The Microsoft Business Data Catalog Definition Editor helps you to author application definition files for the Business Data Catalog. For more information, see Install the Business Data Catalog Definition Editor Tool and Creating a Database Connection by Using the Business Data Catalog Definition Editor.

I want my dropdown SharePoint custom field type get its values from the PROJACTIVITY table in Microsoft Dynamics AX. The next steps describe how to make the link to this table in BDC.

  1. Add LOB system database connection and enter the following text for Connection String:
    ;Database=<DAXDatabase>;Integrated Security=SSPI;

    Replace <DATABASE_SERVER_NAME>\<INSTANCE_NAME> with the name of your database server and <DAXDatabase> with the name of the database used by Microsoft Dynamics AX.

  2. Drag and drop the PROJACTIVITY table to the left.

  3. Set the AuthenticationMode to RevertToSelf for your Instance.

  4. Add a new Method: we will use this method to retrieve all Activities of a given Project. I’ll call this method in this example FindByProjId_<>.

  5. Give the Method a Name and a DefaultDisplayName. Enter the RdbCommandText to retrieve all fields from the PROJACTIVITY table for a given Project.

  6. Create a new Parameter for this newly created Method of type Direction In and enter @PROJID as Name and DefaultDisplayName.

  7. Add a second Parameter of type Direction In: @DATAAREAID.

  8. Add a third Parameter of type Direction Return and enter a Name and DefaultDisplayName.

  9. Create Root TypeDescriptor for both added Parameters and Add TypeDescriptors for your Return Parameter (you can copy-paste most of the properties from one of the other Methods).

  10. Add a Method Instance of type Finder.  Enter a Name and DefaultDisplayName.

  11. Enter a value for the Title property on the Entity. This column will be used to display the action menu.

  12. Enter a LOB System Name.

  13. Your tree of your application definition file should look like this by now:

  14. Export your application definition file.

  15. Go to your Shared Service Provider in SharePoint Central Administration. Choose Import application definition in the Business Data Catalog section and import your exported file.

Test your Business Data Catalog application definition file

  1. Go to your Shared Service Provider and choose View entities in the Business Data Catalog section.

  2. Choose your created Entity.

  3. In the Actions section, you’ll find a View Profile line with a url next to it: copy this url in your clipboard.

  4. Paste the url from your clipboard in Internet Explorer and replace the parameter values ({0}, {1}, ..) with actual values from your Dynamics AX table and hit the Enter key: you should see the detail of your Dynamics AX record in your browser now if everything works.


  • The system account of your SharePoint application pool user might need read access to your Dynamics AX database.

Continue reading......

by Patrik Luca 0 comments

Patrik Luca, Ieper, BELGIUM
Feel free to use or spread all of the content on my blog. In return, linking back to my blog would be greatly appreciated. All my posts and articles are provided "AS IS" with no warranties.

Subscribe feeds via e-mail
Subscribe in your preferred RSS reader

Subscribe feeds rss Most Read Entries


Recommended Books

Subscribe feeds rss Recent Comments

This Blog is part of the U Comment I Follow movement in blogosphere. Means the comment field of this blog is made DOFOLLOW. Spam wont be tolerated.

Blog Archive

My Blog List