<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/atom.xsl" media="screen"?><feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-US"><title type="html">Bugsy&amp;#39;s Blog</title><subtitle type="html" /><id>http://blogs.msdn.com/b/pchriste/atom.aspx</id><link rel="alternate" type="text/html" href="http://blogs.msdn.com/b/pchriste/" /><link rel="self" type="application/atom+xml" href="http://blogs.msdn.com/b/pchriste/atom.aspx" /><generator uri="http://telligent.com" version="5.6.50428.7875">Telligent Evolution Platform Developer Build (Build: 5.6.50428.7875)</generator><updated>2009-04-06T02:35:00Z</updated><entry><title>Showing NAV Data in SharePoint using Business Data Catalog – Part 2 of 2</title><link rel="alternate" type="text/html" href="http://blogs.msdn.com/b/pchriste/archive/2009/04/14/showing-nav-data-in-sharepoint-using-business-data-catalog-part-2-of-2.aspx" /><id>http://blogs.msdn.com/b/pchriste/archive/2009/04/14/showing-nav-data-in-sharepoint-using-business-data-catalog-part-2-of-2.aspx</id><published>2009-04-14T22:21:00Z</published><updated>2009-04-14T22:21:00Z</updated><content type="html">&lt;P&gt;&lt;SPAN lang=EN-US style="mso-ansi-language: en-us"&gt;This is the second part of the walkthrough, showing how you can show your Dynamics NAV Data in SharePoint. This part will show you how you can use the Web Service and Application Definition File that you created in Part 1, and some examples on how you can integrate the data into a SharePoint Site.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN lang=EN-US style="mso-ansi-language: en-us"&gt;The first part can be found here: &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://blogs.msdn.com/pchriste/archive/2009/04/14/showing-nav-data-in-sharepoint-using-business-data-catalog-part-1-of-2.aspx" mce_href="http://blogs.msdn.com/pchriste/archive/2009/04/14/showing-nav-data-in-sharepoint-using-business-data-catalog-part-1-of-2.aspx"&gt;Showing NAV Data in SharePoint using Business Data Catalog – Part 1 of 2&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN lang=EN-US style="mso-ansi-language: en-us"&gt;We are now ready to start using the data in SharePoint. Business Data Catalog is a way to generally expose Business Data to SharePoint, and SharePoint can then use it in multiple ways. In this walkthrough I will show the following scenarios: &lt;/SPAN&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;
&lt;DIV&gt;&lt;SPAN lang=EN-US style="mso-ansi-language: en-us"&gt;&lt;/SPAN&gt;&lt;SPAN lang=EN-US style="mso-ansi-language: en-us"&gt;Using NAV Data in Web Parts &lt;/SPAN&gt;&lt;/DIV&gt;
&lt;LI&gt;
&lt;DIV&gt;&lt;SPAN lang=EN-US style="mso-ansi-language: en-us"&gt;&lt;/SPAN&gt;&lt;SPAN lang=EN-US style="mso-ansi-language: en-us"&gt;Using NAV Data in SharePoint Lists &lt;/SPAN&gt;&lt;/DIV&gt;
&lt;LI&gt;
&lt;DIV&gt;&lt;SPAN lang=EN-US style="mso-ansi-language: en-us"&gt;&lt;/SPAN&gt;&lt;SPAN lang=EN-US style="mso-ansi-language: en-us"&gt;Searching for NAV Data &lt;/SPAN&gt;&lt;/DIV&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;SPAN lang=EN-US style="mso-ansi-language: en-us"&gt;
&lt;H4&gt;Importing the Application Definition File to SharePoint&lt;/H4&gt;&lt;/SPAN&gt;
&lt;P class=MsoNormal&gt;&lt;SPAN lang=EN-US style="mso-ansi-language: en-us"&gt;The first you need to do is to import the Application Definition File you created in Part 1. &lt;/SPAN&gt;&lt;/P&gt;
&lt;P mce_keep="true"&gt;&lt;SPAN lang=EN-US style="mso-ansi-language: en-us"&gt;Open up the SharePoint 3.0 Central Administration. There should be a shortcut to this site in your Start Menu. Then select Shared Services Administration for the default Shared Service (called SharedServices1), and click the link called “Import application definition” &lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal&gt;&lt;A href="http://blogs.msdn.com/blogfiles/pchriste/WindowsLiveWriter/Part2of2_DCB3/Picture18_2.png" mce_href="http://blogs.msdn.com/blogfiles/pchriste/WindowsLiveWriter/Part2of2_DCB3/Picture18_2.png"&gt;&lt;IMG title=Picture18 style="BORDER-TOP-WIDTH: 0px; DISPLAY: inline; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; BORDER-RIGHT-WIDTH: 0px" height=490 alt=Picture18 src="http://blogs.msdn.com/blogfiles/pchriste/WindowsLiveWriter/Part2of2_DCB3/Picture18_thumb.png" width=651 border=0 mce_src="http://blogs.msdn.com/blogfiles/pchriste/WindowsLiveWriter/Part2of2_DCB3/Picture18_thumb.png"&gt;&lt;/A&gt; &lt;/P&gt;
&lt;P mce_keep="true"&gt;&lt;SPAN lang=EN-US style="mso-ansi-language: en-us"&gt;Now you specify the .xml file that you just exported from the Business Data Catalog Definition Editor, and click “Import”. You can leave the other options at their default values: &lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal&gt;&lt;A href="http://blogs.msdn.com/blogfiles/pchriste/WindowsLiveWriter/Part2of2_DCB3/Picture19_2.png" mce_href="http://blogs.msdn.com/blogfiles/pchriste/WindowsLiveWriter/Part2of2_DCB3/Picture19_2.png"&gt;&lt;IMG title=Picture19 style="BORDER-TOP-WIDTH: 0px; DISPLAY: inline; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; BORDER-RIGHT-WIDTH: 0px" height=490 alt=Picture19 src="http://blogs.msdn.com/blogfiles/pchriste/WindowsLiveWriter/Part2of2_DCB3/Picture19_thumb.png" width=651 border=0 mce_src="http://blogs.msdn.com/blogfiles/pchriste/WindowsLiveWriter/Part2of2_DCB3/Picture19_thumb.png"&gt;&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;H4&gt;Adding a Business Data List Web Part to a Page &lt;SPAN lang=EN-US style="mso-ansi-language: en-us"&gt;&lt;/H4&gt;&lt;/SPAN&gt;
&lt;P class=MsoNormal&gt;&lt;SPAN lang=EN-US style="mso-ansi-language: en-us"&gt;Now it is time to show the NAV Data in one of the BDC Web Parts. Create a New SharePoint Site, or use one of the existing Demo Sites. Please make sure that the Enterprise Site Features in activated for the Site; otherwise you won’t be able to use the BDC Web Parts. &lt;/SPAN&gt;&lt;/P&gt;
&lt;P mce_keep="true"&gt;&lt;SPAN lang=EN-US style="mso-ansi-language: en-us"&gt;The Site Features can be enabled under “Site Actions-&amp;gt;Site Settings-&amp;gt;Site Features” &lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal&gt;&lt;A href="http://blogs.msdn.com/blogfiles/pchriste/WindowsLiveWriter/Part2of2_DCB3/Picture20_2.png" mce_href="http://blogs.msdn.com/blogfiles/pchriste/WindowsLiveWriter/Part2of2_DCB3/Picture20_2.png"&gt;&lt;IMG title=Picture20 style="BORDER-TOP-WIDTH: 0px; DISPLAY: inline; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; BORDER-RIGHT-WIDTH: 0px" height=67 alt=Picture20 src="http://blogs.msdn.com/blogfiles/pchriste/WindowsLiveWriter/Part2of2_DCB3/Picture20_thumb.png" width=651 border=0 mce_src="http://blogs.msdn.com/blogfiles/pchriste/WindowsLiveWriter/Part2of2_DCB3/Picture20_thumb.png"&gt;&lt;/A&gt; &lt;/P&gt;
&lt;P mce_keep="true"&gt;&lt;SPAN lang=EN-US style="mso-ansi-language: en-us"&gt;Now, edit the Page, and add a new Web Part of type “Business Data List” &lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal&gt;&lt;A href="http://blogs.msdn.com/blogfiles/pchriste/WindowsLiveWriter/Part2of2_DCB3/Picture21_2.png" mce_href="http://blogs.msdn.com/blogfiles/pchriste/WindowsLiveWriter/Part2of2_DCB3/Picture21_2.png"&gt;&lt;IMG title=Picture21 style="BORDER-TOP-WIDTH: 0px; DISPLAY: inline; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; BORDER-RIGHT-WIDTH: 0px" height=456 alt=Picture21 src="http://blogs.msdn.com/blogfiles/pchriste/WindowsLiveWriter/Part2of2_DCB3/Picture21_thumb.png" width=444 border=0 mce_src="http://blogs.msdn.com/blogfiles/pchriste/WindowsLiveWriter/Part2of2_DCB3/Picture21_thumb.png"&gt;&lt;/A&gt; &lt;/P&gt;
&lt;P mce_keep="true"&gt;&lt;SPAN lang=EN-US style="mso-ansi-language: en-us"&gt;Open the Tool Pane, and specify the Type of the List. You can use the “Browse” button (the small book) to pick the Customer NavLobSystem. &lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal&gt;&lt;A href="http://blogs.msdn.com/blogfiles/pchriste/WindowsLiveWriter/Part2of2_DCB3/Picture22_2.png" mce_href="http://blogs.msdn.com/blogfiles/pchriste/WindowsLiveWriter/Part2of2_DCB3/Picture22_2.png"&gt;&lt;IMG title=Picture22 style="BORDER-TOP-WIDTH: 0px; DISPLAY: inline; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; BORDER-RIGHT-WIDTH: 0px" height=103 alt=Picture22 src="http://blogs.msdn.com/blogfiles/pchriste/WindowsLiveWriter/Part2of2_DCB3/Picture22_thumb.png" width=195 border=0 mce_src="http://blogs.msdn.com/blogfiles/pchriste/WindowsLiveWriter/Part2of2_DCB3/Picture22_thumb.png"&gt;&lt;/A&gt; &lt;/P&gt;
&lt;P mce_keep="true"&gt;&lt;SPAN lang=EN-US style="mso-ansi-language: en-us"&gt;Click OK to close the Tool Pane. &lt;/SPAN&gt;&lt;/P&gt;
&lt;P mce_keep="true"&gt;&lt;SPAN lang=EN-US style="mso-ansi-language: en-us"&gt;You now have a very wide Web Part with all the columns from your Customer Entity. If you want to remove some of the columns, this can be done from the “Edit View” link. When you are done editing, then click “Exit Edit Mode”, and you are ready to try the Web Part. &lt;/SPAN&gt;&lt;/P&gt;
&lt;P mce_keep="true"&gt;&lt;A href="http://blogs.msdn.com/blogfiles/pchriste/WindowsLiveWriter/Part2of2_DCB3/Picture23_2.png" mce_href="http://blogs.msdn.com/blogfiles/pchriste/WindowsLiveWriter/Part2of2_DCB3/Picture23_2.png"&gt;&lt;IMG title=Picture23 style="BORDER-TOP-WIDTH: 0px; DISPLAY: inline; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; BORDER-RIGHT-WIDTH: 0px" height=486 alt=Picture23 src="http://blogs.msdn.com/blogfiles/pchriste/WindowsLiveWriter/Part2of2_DCB3/Picture23_thumb.png" width=651 border=0 mce_src="http://blogs.msdn.com/blogfiles/pchriste/WindowsLiveWriter/Part2of2_DCB3/Picture23_thumb.png"&gt;&lt;/A&gt; &lt;/P&gt;
&lt;P class=MsoNormal&gt;&lt;SPAN lang=EN-US style="mso-ansi-language: en-us"&gt;You can also try adding a Business Data Item Web Part to the Page, and link the two Web Parts, so the Item shows details for the currently selected Customer in the List. &lt;/SPAN&gt;&lt;/P&gt;
&lt;H4&gt;Using NAV Data in SharePoint Lists &lt;SPAN lang=EN-US style="mso-ansi-language: en-us"&gt;&lt;/H4&gt;&lt;/SPAN&gt;
&lt;P class=MsoNormal&gt;&lt;SPAN lang=EN-US style="mso-ansi-language: en-us"&gt;It is also possible to add columns from Business Data to any kind of SharePoint Lists. This can be very useful for e.g. a Document Library. &lt;/SPAN&gt;&lt;/P&gt;
&lt;P mce_keep="true"&gt;&lt;SPAN lang=EN-US style="mso-ansi-language: en-us"&gt;Create a new Document Library to your Page, and add a couple of Documents. In my example I have created a Document Library with “Customer Letters” &lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal&gt;&lt;A href="http://blogs.msdn.com/blogfiles/pchriste/WindowsLiveWriter/Part2of2_DCB3/Picture24_2.png" mce_href="http://blogs.msdn.com/blogfiles/pchriste/WindowsLiveWriter/Part2of2_DCB3/Picture24_2.png"&gt;&lt;IMG title=Picture24 style="BORDER-TOP-WIDTH: 0px; DISPLAY: inline; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; BORDER-RIGHT-WIDTH: 0px" height=486 alt=Picture24 src="http://blogs.msdn.com/blogfiles/pchriste/WindowsLiveWriter/Part2of2_DCB3/Picture24_thumb.png" width=651 border=0 mce_src="http://blogs.msdn.com/blogfiles/pchriste/WindowsLiveWriter/Part2of2_DCB3/Picture24_thumb.png"&gt;&lt;/A&gt; &lt;/P&gt;
&lt;P mce_keep="true"&gt;&lt;SPAN lang=EN-US style="mso-ansi-language: en-us"&gt;Now, add a new Column to the list, through the “Settings-&amp;gt; Create Column” menu. Give it a Name, and specify that you want to show Business Data. Then specify the Type and which Field to display (e.g. Name). &lt;/SPAN&gt;&lt;/P&gt;
&lt;P mce_keep="true"&gt;&lt;A href="http://blogs.msdn.com/blogfiles/pchriste/WindowsLiveWriter/Part2of2_DCB3/Picture25_2.png" mce_href="http://blogs.msdn.com/blogfiles/pchriste/WindowsLiveWriter/Part2of2_DCB3/Picture25_2.png"&gt;&lt;IMG title=Picture25 style="BORDER-TOP-WIDTH: 0px; DISPLAY: inline; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; BORDER-RIGHT-WIDTH: 0px" height=486 alt=Picture25 src="http://blogs.msdn.com/blogfiles/pchriste/WindowsLiveWriter/Part2of2_DCB3/Picture25_thumb.png" width=651 border=0 mce_src="http://blogs.msdn.com/blogfiles/pchriste/WindowsLiveWriter/Part2of2_DCB3/Picture25_thumb.png"&gt;&lt;/A&gt; &lt;/P&gt;
&lt;P class=MsoNormal&gt;&lt;SPAN lang=EN-US style="mso-ansi-language: en-us"&gt;Click OK, and you now have a new Column in the list that you can use to reference Customer Data in NAV. &lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal&gt;&lt;A href="http://blogs.msdn.com/blogfiles/pchriste/WindowsLiveWriter/Part2of2_DCB3/Picture26_2.png" mce_href="http://blogs.msdn.com/blogfiles/pchriste/WindowsLiveWriter/Part2of2_DCB3/Picture26_2.png"&gt;&lt;IMG title=Picture26 style="BORDER-TOP-WIDTH: 0px; DISPLAY: inline; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; BORDER-RIGHT-WIDTH: 0px" height=486 alt=Picture26 src="http://blogs.msdn.com/blogfiles/pchriste/WindowsLiveWriter/Part2of2_DCB3/Picture26_thumb.png" width=651 border=0 mce_src="http://blogs.msdn.com/blogfiles/pchriste/WindowsLiveWriter/Part2of2_DCB3/Picture26_thumb.png"&gt;&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;H4&gt;Searching for NAV Data &lt;SPAN lang=EN-US style="mso-ansi-language: en-us"&gt;&lt;/H4&gt;&lt;/SPAN&gt;
&lt;P class=MsoNormal&gt;&lt;SPAN lang=EN-US style="mso-ansi-language: en-us"&gt;Finally I would like to show how you can use the Business data in the SharePoint Search Feature. This will enable you to search for Business Data the same way you search for any other Data on your SharePoint Site. &lt;/SPAN&gt;&lt;/P&gt;
&lt;P mce_keep="true"&gt;&lt;SPAN lang=EN-US style="mso-ansi-language: en-us"&gt;To enable SharePoint Search to crawl your Business data, you need to make sure that the Crawler has permissions to the Business Data through the Web Service. In a real deployment you should use a specific account for this, but for my walkthrough, I simply used my own user account. &lt;/SPAN&gt;&lt;/P&gt;
&lt;P mce_keep="true"&gt;&lt;SPAN lang=EN-US style="mso-ansi-language: en-us"&gt;On the SharePoint 3.0 Central Administration Site, go to “SharedServices1-&amp;gt;Search administration-&amp;gt; Default Content Access Account” &lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal&gt;&lt;A href="http://blogs.msdn.com/blogfiles/pchriste/WindowsLiveWriter/Part2of2_DCB3/Picture27_2.png" mce_href="http://blogs.msdn.com/blogfiles/pchriste/WindowsLiveWriter/Part2of2_DCB3/Picture27_2.png"&gt;&lt;IMG title=Picture27 style="BORDER-TOP-WIDTH: 0px; DISPLAY: inline; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; BORDER-RIGHT-WIDTH: 0px" height=490 alt=Picture27 src="http://blogs.msdn.com/blogfiles/pchriste/WindowsLiveWriter/Part2of2_DCB3/Picture27_thumb.png" width=651 border=0 mce_src="http://blogs.msdn.com/blogfiles/pchriste/WindowsLiveWriter/Part2of2_DCB3/Picture27_thumb.png"&gt;&lt;/A&gt; &lt;/P&gt;
&lt;P mce_keep="true"&gt;&lt;SPAN lang=EN-US style="mso-ansi-language: en-us"&gt;Set the Default Content Access Account, and click OK. &lt;/SPAN&gt;&lt;/P&gt;
&lt;P mce_keep="true"&gt;&lt;SPAN lang=EN-US style="mso-ansi-language: en-us"&gt;Now you need to define a Content Source for the Crawler, so it knows to crawl your Business Data. Go to “SharedServices1-&amp;gt;Search administration-&amp;gt;Content Sources”, and click “New Content Source”. Specify the Name, Type and Applications for the NavLobSystem as shown here: &lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal&gt;&lt;A href="http://blogs.msdn.com/blogfiles/pchriste/WindowsLiveWriter/Part2of2_DCB3/Picture28_2.png" mce_href="http://blogs.msdn.com/blogfiles/pchriste/WindowsLiveWriter/Part2of2_DCB3/Picture28_2.png"&gt;&lt;IMG title=Picture28 style="BORDER-TOP-WIDTH: 0px; DISPLAY: inline; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; BORDER-RIGHT-WIDTH: 0px" height=490 alt=Picture28 src="http://blogs.msdn.com/blogfiles/pchriste/WindowsLiveWriter/Part2of2_DCB3/Picture28_thumb.png" width=651 border=0 mce_src="http://blogs.msdn.com/blogfiles/pchriste/WindowsLiveWriter/Part2of2_DCB3/Picture28_thumb.png"&gt;&lt;/A&gt; &lt;/P&gt;
&lt;P mce_keep="true"&gt;&lt;SPAN lang=EN-US style="mso-ansi-language: en-us"&gt;Click OK, and you are now ready to start the first Crawl of your data. The current setup does not support Incremental Crawl, so you need to start a Full Crawl. &lt;/SPAN&gt;&lt;/P&gt;
&lt;P mce_keep="true"&gt;&lt;SPAN lang=EN-US style="mso-ansi-language: en-us"&gt;On the new Content Source click “Start Full Crawl” &lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal&gt;&lt;A href="http://blogs.msdn.com/blogfiles/pchriste/WindowsLiveWriter/Part2of2_DCB3/Picture29_2.png" mce_href="http://blogs.msdn.com/blogfiles/pchriste/WindowsLiveWriter/Part2of2_DCB3/Picture29_2.png"&gt;&lt;IMG title=Picture29 style="BORDER-TOP-WIDTH: 0px; DISPLAY: inline; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; BORDER-RIGHT-WIDTH: 0px" height=490 alt=Picture29 src="http://blogs.msdn.com/blogfiles/pchriste/WindowsLiveWriter/Part2of2_DCB3/Picture29_thumb.png" width=651 border=0 mce_src="http://blogs.msdn.com/blogfiles/pchriste/WindowsLiveWriter/Part2of2_DCB3/Picture29_thumb.png"&gt;&lt;/A&gt; &lt;/P&gt;
&lt;P mce_keep="true"&gt;&lt;SPAN lang=EN-US style="mso-ansi-language: en-us"&gt;When the Crawl is finished, you should check the Log file to see if it was successful. If that is the case, then you are now ready to search for Business Data. &lt;/SPAN&gt;&lt;/P&gt;
&lt;P mce_keep="true"&gt;&lt;SPAN lang=EN-US style="mso-ansi-language: en-us"&gt;On your Demo SharePoint Site, try searching for “Barcelona”. You should now get one hit from the NAV Demo Data: Customer 34010100 - Libros S.A. &lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal&gt;&lt;A href="http://blogs.msdn.com/blogfiles/pchriste/WindowsLiveWriter/Part2of2_DCB3/Picture30_2.png" mce_href="http://blogs.msdn.com/blogfiles/pchriste/WindowsLiveWriter/Part2of2_DCB3/Picture30_2.png"&gt;&lt;IMG title=Picture30 style="BORDER-TOP-WIDTH: 0px; DISPLAY: inline; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; BORDER-RIGHT-WIDTH: 0px" height=490 alt=Picture30 src="http://blogs.msdn.com/blogfiles/pchriste/WindowsLiveWriter/Part2of2_DCB3/Picture30_thumb.png" width=651 border=0 mce_src="http://blogs.msdn.com/blogfiles/pchriste/WindowsLiveWriter/Part2of2_DCB3/Picture30_thumb.png"&gt;&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;H3&gt;Final Thoughts &lt;SPAN lang=EN-US style="mso-ansi-language: en-us"&gt;&lt;/H3&gt;&lt;/SPAN&gt;
&lt;P class=MsoNormal&gt;&lt;SPAN lang=EN-US style="mso-ansi-language: en-us"&gt;This walkthrough became a little longer than I planned, but I hope it shows what steps is needed to show Dynamics NAV data in SharePoint, using the Business Data Catalog. There are many steps, but they are pretty easy as soon as you have tried them. &lt;/SPAN&gt;&lt;/P&gt;
&lt;P mce_keep="true"&gt;&lt;SPAN lang=EN-US style="mso-ansi-language: en-us"&gt;I think this way of enabling Business Data for SharePoint is a very good way, because it allows you to integrate the data very tightly with SharePoint, in central features like Search and Lists. &lt;/SPAN&gt;&lt;/P&gt;
&lt;P mce_keep="true"&gt;&lt;SPAN lang=EN-US style="mso-ansi-language: en-us"&gt;Thanks &lt;BR&gt;&lt;STRONG&gt;/Bugsy &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9549023" width="1" height="1"&gt;</content><author><name>pchriste_microsoft.com</name><uri>http://blogs.msdn.com/pchriste/ProfileUrlRedirect.ashx</uri></author><category term="Dynamics NAV" scheme="http://blogs.msdn.com/b/pchriste/archive/tags/Dynamics+NAV/" /><category term="SharePoint" scheme="http://blogs.msdn.com/b/pchriste/archive/tags/SharePoint/" /></entry><entry><title>Showing NAV Data in SharePoint using Business Data Catalog – Part 1 of 2</title><link rel="alternate" type="text/html" href="http://blogs.msdn.com/b/pchriste/archive/2009/04/14/showing-nav-data-in-sharepoint-using-business-data-catalog-part-1-of-2.aspx" /><id>http://blogs.msdn.com/b/pchriste/archive/2009/04/14/showing-nav-data-in-sharepoint-using-business-data-catalog-part-1-of-2.aspx</id><published>2009-04-14T17:52:00Z</published><updated>2009-04-14T17:52:00Z</updated><content type="html">&lt;P class=MsoNormal&gt;&lt;SPAN lang=EN-US style="mso-ansi-language: en-us"&gt;At the conference Directions EMEA 2009, I did a session on Dynamics NAV and SharePoint. In that session I showed a short demo on how you can show Dynamics NAV data in SharePoint, using the Business Data Catalog feature. You can see more about the conference at &lt;/SPAN&gt;&lt;A href="http://www.directionsemea.com/" mce_href="http://www.directionsemea.com"&gt;&lt;SPAN lang=EN-US style="mso-ansi-language: en-us"&gt;http://www.directionsemea.com&lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN lang=EN-US style="mso-ansi-language: en-us"&gt; &lt;/SPAN&gt;&lt;/P&gt;
&lt;P mce_keep="true"&gt;&lt;SPAN lang=EN-US style="mso-ansi-language: en-us"&gt;Here I would like to walk through the steps to do the demo, so you can try this out as well. I think it is a quite simple way to enable SharePoint users to access the data that is in your Dynamics NAV system. &lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal&gt;&lt;SPAN lang=EN-US style="mso-ansi-language: en-us"&gt;This first part of the walkthrough will show how you build the Web Service and Application Definition File for SharePoint. The second part will show how you can then use this in SharePoint.&lt;/SPAN&gt;&lt;/P&gt;
&lt;H3&gt;Step 1: Creating the NAV 2009 Web Service &lt;/H3&gt;
&lt;P class=MsoNormal&gt;&lt;SPAN lang=EN-US style="mso-ansi-language: en-us"&gt;The first step is to create a NAV 2009 Web Service to expose the data that you want. In our example we will expose Customer Data. &lt;/SPAN&gt;&lt;/P&gt;
&lt;P mce_keep="true"&gt;&lt;SPAN lang=EN-US style="mso-ansi-language: en-us"&gt;Creating a Web Service in NAV 2009 is really simple. In the Classic Client, open the Web Service Form. It is found under “IT Administration-&amp;gt;General Setup-&amp;gt;Web Services” &lt;/SPAN&gt;&lt;/P&gt;
&lt;P mce_keep="true"&gt;&lt;SPAN lang=EN-US style="mso-ansi-language: en-us"&gt;In the Web Services Form, you add a line with Page 21, call the Service “Customer” and set a checkmark in the Published Column. This will create a Web Service, exposing all the Fields on Page 21 “Customer Card”. If you want to expose other fields, you can create a specific Page for that, but for my example I have just used the standard Customer Card Page&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal&gt;&lt;A href="http://blogs.msdn.com/blogfiles/pchriste/WindowsLiveWriter/ExposingNAVDatatoSharePointusingBusiness_439/Picture01_2.png" mce_href="http://blogs.msdn.com/blogfiles/pchriste/WindowsLiveWriter/ExposingNAVDatatoSharePointusingBusiness_439/Picture01_2.png"&gt;&lt;IMG title=Picture01 style="BORDER-TOP-WIDTH: 0px; DISPLAY: inline; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; BORDER-RIGHT-WIDTH: 0px" height=299 alt=Picture01 src="http://blogs.msdn.com/blogfiles/pchriste/WindowsLiveWriter/ExposingNAVDatatoSharePointusingBusiness_439/Picture01_thumb.png" width=455 border=0 mce_src="http://blogs.msdn.com/blogfiles/pchriste/WindowsLiveWriter/ExposingNAVDatatoSharePointusingBusiness_439/Picture01_thumb.png"&gt;&lt;/A&gt; &lt;/P&gt;
&lt;P class=MsoNormal&gt;&lt;SPAN style="mso-fareast-language: da; mso-no-proof: yes"&gt;&lt;SHAPETYPE id=_x0000_t75 stroked="f" filled="f" path="m@4@5l@4@11@9@11@9@5xe" o:preferrelative="t" o:spt="75" coordsize="21600,21600"&gt;&lt;STROKE joinstyle="miter"&gt;&lt;/STROKE&gt;&lt;FORMULAS&gt;&lt;F eqn="if lineDrawn pixelLineWidth 0"&gt;&lt;/F&gt;&lt;F eqn="sum @0 1 0"&gt;&lt;/F&gt;&lt;F eqn="sum 0 0 @1"&gt;&lt;/F&gt;&lt;F eqn="prod @2 1 2"&gt;&lt;/F&gt;&lt;F eqn="prod @3 21600 pixelWidth"&gt;&lt;/F&gt;&lt;F eqn="prod @3 21600 pixelHeight"&gt;&lt;/F&gt;&lt;F eqn="sum @0 0 1"&gt;&lt;/F&gt;&lt;F eqn="prod @6 1 2"&gt;&lt;/F&gt;&lt;F eqn="prod @7 21600 pixelWidth"&gt;&lt;/F&gt;&lt;F eqn="sum @8 21600 0"&gt;&lt;/F&gt;&lt;F eqn="prod @7 21600 pixelHeight"&gt;&lt;/F&gt;&lt;F eqn="sum @10 21600 0"&gt;&lt;/F&gt;&lt;/FORMULAS&gt;&lt;PATH o:connecttype="rect" gradientshapeok="t" o:extrusionok="f"&gt;&lt;/PATH&gt;&lt;LOCK aspectratio="t" v:ext="edit"&gt;&lt;/LOCK&gt;&lt;/SHAPETYPE&gt;&lt;SHAPE id=_x0000_i1054 style="VISIBILITY: visible; WIDTH: 335.25pt; HEIGHT: 218.25pt; mso-wrap-style: square" type="#_x0000_t75"&gt;&lt;IMAGEDATA mce_src="file:///C:\Users\pchriste\AppData\Local\Temp\1\msohtmlclip1\01\clip_image001.png" src="file:///C:\Users\pchriste\AppData\Local\Temp\1\msohtmlclip1\01\clip_image001.png" o:title="o:title"&gt;&lt;/IMAGEDATA&gt;&lt;/SHAPE&gt;&lt;/SPAN&gt;&lt;SPAN lang=EN-US style="mso-ansi-language: en-us"&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P mce_keep="true"&gt;&lt;SPAN lang=EN-US style="mso-ansi-language: en-us"&gt;Before you can try the new Web Service, you need to make sure that the “Microsoft Dynamics NAV Business Web Services” service is started on the machine. In a default installation this service is not started automatically, so you might want to set the Startup Type to Automatic as well.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal&gt;&lt;A href="http://blogs.msdn.com/blogfiles/pchriste/WindowsLiveWriter/ExposingNAVDatatoSharePointusingBusiness_439/Picture02_2.png" mce_href="http://blogs.msdn.com/blogfiles/pchriste/WindowsLiveWriter/ExposingNAVDatatoSharePointusingBusiness_439/Picture02_2.png"&gt;&lt;IMG title=Picture02 style="BORDER-TOP-WIDTH: 0px; DISPLAY: inline; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; BORDER-RIGHT-WIDTH: 0px" height=56 alt=Picture02 src="http://blogs.msdn.com/blogfiles/pchriste/WindowsLiveWriter/ExposingNAVDatatoSharePointusingBusiness_439/Picture02_thumb.png" width=509 border=0 mce_src="http://blogs.msdn.com/blogfiles/pchriste/WindowsLiveWriter/ExposingNAVDatatoSharePointusingBusiness_439/Picture02_thumb.png"&gt;&lt;/A&gt; &lt;/P&gt;
&lt;P class=MsoNormal&gt;&lt;SPAN lang=EN-US style="mso-ansi-language: en-us"&gt;Now you can actually try out your new Web Service. The default URL for the Web Service is: &lt;/SPAN&gt;&lt;/P&gt;
&lt;P mce_keep="true"&gt;&lt;A href="http://localhost:7047/DynamicsNAV/WS/CRONUS_International_Ltd/Page/Customer" mce_href="http://localhost:7047/DynamicsNAV/WS/CRONUS_International_Ltd/Page/Customer"&gt;&lt;SPAN lang=EN-US style="mso-ansi-language: en-us"&gt;http://localhost:7047/DynamicsNAV/WS/CRONUS_International_Ltd/Page/Customer&lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN lang=EN-US style="mso-ansi-language: en-us"&gt; &lt;/SPAN&gt;&lt;/P&gt;
&lt;P mce_keep="true"&gt;&lt;SPAN lang=EN-US style="mso-ansi-language: en-us"&gt;If you want to know more about NAV 2009 Web Services, then you can try out some of the Web Services Walkthroughs in the C/SIDE Reference Guide Online Documentation.&lt;/SPAN&gt;&lt;/P&gt;
&lt;H3&gt;Step 2: Creating a new BDC compatible Web Service &lt;/H3&gt;
&lt;P class=MsoNormal&gt;&lt;SPAN lang=EN-US style="mso-ansi-language: en-us"&gt;The Web Service that you have just created does unfortunately not have the right format for the SharePoint Business Data Catalog, so you need to create a new Web Service that Business Data Catalog understands, and then from that call the NAV 2009 Web Service. &lt;/SPAN&gt;&lt;/P&gt;
&lt;P mce_keep="true"&gt;&lt;SPAN lang=EN-US style="mso-ansi-language: en-us"&gt;In Visual Studio (I used VS 2005), create a new ASP.NET Web Service Application, called NavBdcWebService&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal&gt;&lt;A href="http://blogs.msdn.com/blogfiles/pchriste/WindowsLiveWriter/ExposingNAVDatatoSharePointusingBusiness_439/Picture03_2.png" mce_href="http://blogs.msdn.com/blogfiles/pchriste/WindowsLiveWriter/ExposingNAVDatatoSharePointusingBusiness_439/Picture03_2.png"&gt;&lt;IMG title=Picture03 style="BORDER-TOP-WIDTH: 0px; DISPLAY: inline; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; BORDER-RIGHT-WIDTH: 0px" height=398 alt=Picture03 src="http://blogs.msdn.com/blogfiles/pchriste/WindowsLiveWriter/ExposingNAVDatatoSharePointusingBusiness_439/Picture03_thumb.png" width=592 border=0 mce_src="http://blogs.msdn.com/blogfiles/pchriste/WindowsLiveWriter/ExposingNAVDatatoSharePointusingBusiness_439/Picture03_thumb.png"&gt;&lt;/A&gt; &lt;/P&gt;
&lt;P class=MsoNormal&gt;&lt;SPAN style="mso-fareast-language: da; mso-no-proof: yes"&gt;&lt;SHAPE id=_x0000_i1052 style="VISIBILITY: visible; WIDTH: 438pt; HEIGHT: 292.5pt; mso-wrap-style: square" type="#_x0000_t75"&gt;&lt;IMAGEDATA mce_src="file:///C:\Users\pchriste\AppData\Local\Temp\1\msohtmlclip1\01\clip_image003.png" src="file:///C:\Users\pchriste\AppData\Local\Temp\1\msohtmlclip1\01\clip_image003.png" o:title="o:title"&gt;&lt;/IMAGEDATA&gt;&lt;/SHAPE&gt;&lt;/SPAN&gt;&lt;SPAN lang=EN-US style="mso-ansi-language: en-us"&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P mce_keep="true"&gt;&lt;SPAN lang=EN-US style="mso-ansi-language: en-us"&gt;Rename the Service1.asmx file to NavBdcWebService.asmx, and call the Web Service class for NavBdcWebService. Also remember to update the reference in the .asmx file to the new name of the class. To edit that file, right click the NavBdcWebService.asmx file in the Solution Explorer and select “View Markup” &lt;/SPAN&gt;&lt;/P&gt;
&lt;P mce_keep="true"&gt;&lt;SPAN lang=EN-US style="FONT-SIZE: 8pt; BACKGROUND: yellow; LINE-HEIGHT: 115%; FONT-FAMILY: 'Courier New'; mso-ansi-language: en-us; mso-no-proof: yes; mso-highlight: yellow"&gt;&amp;lt;%&lt;/SPAN&gt;&lt;SPAN lang=EN-US style="FONT-SIZE: 8pt; COLOR: blue; LINE-HEIGHT: 115%; FONT-FAMILY: 'Courier New'; mso-ansi-language: en-us; mso-no-proof: yes"&gt;@&lt;/SPAN&gt;&lt;SPAN lang=EN-US style="FONT-SIZE: 8pt; LINE-HEIGHT: 115%; FONT-FAMILY: 'Courier New'; mso-ansi-language: en-us; mso-no-proof: yes"&gt; &lt;SPAN style="COLOR: #a31515"&gt;WebService&lt;/SPAN&gt; &lt;SPAN style="COLOR: red"&gt;Language&lt;/SPAN&gt;&lt;SPAN style="COLOR: blue"&gt;="C#"&lt;/SPAN&gt; &lt;SPAN style="COLOR: red"&gt;CodeBehind&lt;/SPAN&gt;&lt;SPAN style="COLOR: blue"&gt;="NavBdcWebService.asmx.cs"&lt;/SPAN&gt; &lt;SPAN style="COLOR: red"&gt;Class&lt;/SPAN&gt;&lt;SPAN style="COLOR: blue"&gt;="NavBdcWebService.NavBdcWebService"&lt;/SPAN&gt; &lt;SPAN style="BACKGROUND: yellow; mso-highlight: yellow"&gt;%&amp;gt;&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;/P&gt;
&lt;P mce_keep="true"&gt;&lt;A href="http://blogs.msdn.com/blogfiles/pchriste/WindowsLiveWriter/ExposingNAVDatatoSharePointusingBusiness_439/Picture04_2.png" mce_href="http://blogs.msdn.com/blogfiles/pchriste/WindowsLiveWriter/ExposingNAVDatatoSharePointusingBusiness_439/Picture04_2.png"&gt;&lt;IMG title=Picture04 style="BORDER-TOP-WIDTH: 0px; DISPLAY: inline; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; BORDER-RIGHT-WIDTH: 0px" height=127 alt=Picture04 src="http://blogs.msdn.com/blogfiles/pchriste/WindowsLiveWriter/ExposingNAVDatatoSharePointusingBusiness_439/Picture04_thumb.png" width=180 border=0 mce_src="http://blogs.msdn.com/blogfiles/pchriste/WindowsLiveWriter/ExposingNAVDatatoSharePointusingBusiness_439/Picture04_thumb.png"&gt;&lt;/A&gt; &lt;/P&gt;
&lt;P class=MsoNormal&gt;&lt;SPAN lang=EN-US style="mso-ansi-language: en-us"&gt;In order to access the NAV 2009 Web Service from your new Web Service, you need to add a Web Reference to the NAV 2009 Web Service. &lt;/SPAN&gt;&lt;/P&gt;
&lt;P mce_keep="true"&gt;&lt;SPAN lang=EN-US style="mso-ansi-language: en-us"&gt;In the menu, select “Project-&amp;gt;Add Web Reference…” and specify the URL for the NAV 2009 Web Service called Customer: &lt;/SPAN&gt;&lt;/P&gt;
&lt;P mce_keep="true"&gt;&lt;A href="http://localhost:7047/DynamicsNAV/WS/CRONUS_International_Ltd/Page/Customer" mce_href="http://localhost:7047/DynamicsNAV/WS/CRONUS_International_Ltd/Page/Customer"&gt;&lt;SPAN lang=EN-US style="mso-ansi-language: en-us"&gt;http://localhost:7047/DynamicsNAV/WS/CRONUS_International_Ltd/Page/Customer&lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN lang=EN-US style="mso-ansi-language: en-us"&gt; &lt;/SPAN&gt;&lt;/P&gt;
&lt;P mce_keep="true"&gt;&lt;SPAN lang=EN-US style="mso-ansi-language: en-us"&gt;Give the Web Reference the name “NavCustomer” to avoid conflicts with the Customer Class there, and click “Add Refernce”: &lt;/SPAN&gt;&lt;/P&gt;
&lt;P mce_keep="true"&gt;&lt;A href="http://blogs.msdn.com/blogfiles/pchriste/WindowsLiveWriter/ExposingNAVDatatoSharePointusingBusiness_439/Picture05_2.png" mce_href="http://blogs.msdn.com/blogfiles/pchriste/WindowsLiveWriter/ExposingNAVDatatoSharePointusingBusiness_439/Picture05_2.png"&gt;&lt;IMG title=Picture05 style="BORDER-TOP-WIDTH: 0px; DISPLAY: inline; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; BORDER-RIGHT-WIDTH: 0px" height=324 alt=Picture05 src="http://blogs.msdn.com/blogfiles/pchriste/WindowsLiveWriter/ExposingNAVDatatoSharePointusingBusiness_439/Picture05_thumb.png" width=462 border=0 mce_src="http://blogs.msdn.com/blogfiles/pchriste/WindowsLiveWriter/ExposingNAVDatatoSharePointusingBusiness_439/Picture05_thumb.png"&gt;&lt;/A&gt; &lt;/P&gt;
&lt;P class=MsoNormal&gt;&lt;SPAN lang=EN-US style="mso-ansi-language: en-us"&gt;Now replace all the code in NavBdcWebService.asmx.cs file with the following: &lt;/SPAN&gt;&lt;/P&gt;
&lt;P mce_keep="true"&gt;&lt;SPAN lang=EN-US style="FONT-SIZE: 8pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-ansi-language: en-us; mso-no-proof: yes"&gt;using&lt;/SPAN&gt;&lt;SPAN lang=EN-US style="FONT-SIZE: 8pt; FONT-FAMILY: 'Courier New'; mso-ansi-language: en-us; mso-no-proof: yes"&gt; System; &lt;BR&gt;&lt;/SPAN&gt;&lt;SPAN lang=EN-US style="FONT-SIZE: 8pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-ansi-language: en-us; mso-no-proof: yes"&gt;using&lt;/SPAN&gt;&lt;SPAN lang=EN-US style="FONT-SIZE: 8pt; FONT-FAMILY: 'Courier New'; mso-ansi-language: en-us; mso-no-proof: yes"&gt; System.Data; &lt;BR&gt;&lt;/SPAN&gt;&lt;SPAN lang=EN-US style="FONT-SIZE: 8pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-ansi-language: en-us; mso-no-proof: yes"&gt;using&lt;/SPAN&gt;&lt;SPAN lang=EN-US style="FONT-SIZE: 8pt; FONT-FAMILY: 'Courier New'; mso-ansi-language: en-us; mso-no-proof: yes"&gt; System.Web; &lt;BR&gt;&lt;/SPAN&gt;&lt;SPAN lang=EN-US style="FONT-SIZE: 8pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-ansi-language: en-us; mso-no-proof: yes"&gt;using&lt;/SPAN&gt;&lt;SPAN lang=EN-US style="FONT-SIZE: 8pt; FONT-FAMILY: 'Courier New'; mso-ansi-language: en-us; mso-no-proof: yes"&gt; System.Collections; &lt;BR&gt;&lt;/SPAN&gt;&lt;SPAN lang=EN-US style="FONT-SIZE: 8pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-ansi-language: en-us; mso-no-proof: yes"&gt;using&lt;/SPAN&gt;&lt;SPAN lang=EN-US style="FONT-SIZE: 8pt; FONT-FAMILY: 'Courier New'; mso-ansi-language: en-us; mso-no-proof: yes"&gt; System.Web.Services; &lt;BR&gt;&lt;/SPAN&gt;&lt;SPAN lang=EN-US style="FONT-SIZE: 8pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-ansi-language: en-us; mso-no-proof: yes"&gt;using&lt;/SPAN&gt;&lt;SPAN lang=EN-US style="FONT-SIZE: 8pt; FONT-FAMILY: 'Courier New'; mso-ansi-language: en-us; mso-no-proof: yes"&gt; System.Web.Services.Protocols; &lt;BR&gt;&lt;/SPAN&gt;&lt;SPAN lang=EN-US style="FONT-SIZE: 8pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-ansi-language: en-us; mso-no-proof: yes"&gt;using&lt;/SPAN&gt;&lt;SPAN lang=EN-US style="FONT-SIZE: 8pt; FONT-FAMILY: 'Courier New'; mso-ansi-language: en-us; mso-no-proof: yes"&gt; System.ComponentModel; &lt;BR&gt;&lt;/SPAN&gt;&lt;SPAN lang=EN-US style="FONT-SIZE: 8pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-ansi-language: en-us; mso-no-proof: yes"&gt;using&lt;/SPAN&gt;&lt;SPAN lang=EN-US style="FONT-SIZE: 8pt; FONT-FAMILY: 'Courier New'; mso-ansi-language: en-us; mso-no-proof: yes"&gt; System.Collections.Generic; &lt;BR&gt;&lt;/SPAN&gt;&lt;SPAN lang=EN-US style="FONT-SIZE: 8pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-ansi-language: en-us; mso-no-proof: yes"&gt;using&lt;/SPAN&gt;&lt;SPAN lang=EN-US style="FONT-SIZE: 8pt; FONT-FAMILY: 'Courier New'; mso-ansi-language: en-us; mso-no-proof: yes"&gt; NavBdcWebService.NavCustomer; &lt;BR&gt;&lt;BR&gt;&lt;/SPAN&gt;&lt;SPAN lang=EN-US style="FONT-SIZE: 8pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-ansi-language: en-us; mso-no-proof: yes"&gt;namespace&lt;/SPAN&gt;&lt;SPAN lang=EN-US style="FONT-SIZE: 8pt; FONT-FAMILY: 'Courier New'; mso-ansi-language: en-us; mso-no-proof: yes"&gt; NavBdcWebService &lt;BR&gt;&lt;/SPAN&gt;&lt;SPAN lang=EN-US style="FONT-SIZE: 8pt; FONT-FAMILY: 'Courier New'; mso-ansi-language: en-us; mso-no-proof: yes"&gt;{ &lt;BR&gt;&lt;/SPAN&gt;&lt;SPAN lang=EN-US style="FONT-SIZE: 8pt; FONT-FAMILY: 'Courier New'; mso-ansi-language: en-us; mso-no-proof: yes"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="COLOR: gray"&gt;///&lt;/SPAN&gt;&lt;SPAN style="COLOR: green"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR: gray"&gt;&amp;lt;summary&amp;gt; &lt;BR&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN lang=EN-US style="FONT-SIZE: 8pt; FONT-FAMILY: 'Courier New'; mso-ansi-language: en-us; mso-no-proof: yes"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="COLOR: gray"&gt;///&lt;/SPAN&gt;&lt;SPAN style="COLOR: green"&gt; MOSS BDC Compatible Webservice for getting NAV Data &lt;BR&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN lang=EN-US style="FONT-SIZE: 8pt; FONT-FAMILY: 'Courier New'; mso-ansi-language: en-us; mso-no-proof: yes"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="COLOR: gray"&gt;///&lt;/SPAN&gt;&lt;SPAN style="COLOR: green"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR: gray"&gt;&amp;lt;/summary&amp;gt; &lt;BR&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN lang=EN-US style="FONT-SIZE: 8pt; FONT-FAMILY: 'Courier New'; mso-ansi-language: en-us; mso-no-proof: yes"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;[&lt;SPAN style="COLOR: #2b91af"&gt;WebService&lt;/SPAN&gt;(Namespace = &lt;SPAN style="COLOR: #a31515"&gt;&lt;A href="http://tempuri.org/" mce_href="http://tempuri.org/"&gt;http://tempuri.org/&lt;/A&gt;&lt;/SPAN&gt;)] &lt;BR&gt;&lt;/SPAN&gt;&lt;SPAN lang=EN-US style="FONT-SIZE: 8pt; FONT-FAMILY: 'Courier New'; mso-ansi-language: en-us; mso-no-proof: yes"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;[&lt;SPAN style="COLOR: #2b91af"&gt;WebServiceBinding&lt;/SPAN&gt;(ConformsTo = &lt;SPAN style="COLOR: #2b91af"&gt;WsiProfiles&lt;/SPAN&gt;.BasicProfile1_1)] &lt;BR&gt;&lt;/SPAN&gt;&lt;SPAN lang=EN-US style="FONT-SIZE: 8pt; FONT-FAMILY: 'Courier New'; mso-ansi-language: en-us; mso-no-proof: yes"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;[&lt;SPAN style="COLOR: #2b91af"&gt;ToolboxItem&lt;/SPAN&gt;(&lt;SPAN style="COLOR: blue"&gt;false&lt;/SPAN&gt;)] &lt;BR&gt;&lt;/SPAN&gt;&lt;SPAN lang=EN-US style="FONT-SIZE: 8pt; FONT-FAMILY: 'Courier New'; mso-ansi-language: en-us; mso-no-proof: yes"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="COLOR: blue"&gt;public&lt;/SPAN&gt; &lt;SPAN style="COLOR: blue"&gt;class&lt;/SPAN&gt; &lt;SPAN style="COLOR: #2b91af"&gt;NavBdcWebService&lt;/SPAN&gt; : System.Web.Services.&lt;SPAN style="COLOR: #2b91af"&gt;WebService &lt;BR&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN lang=EN-US style="FONT-SIZE: 8pt; FONT-FAMILY: 'Courier New'; mso-ansi-language: en-us; mso-no-proof: yes"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;{ &lt;BR&gt;&lt;/SPAN&gt;&lt;SPAN lang=EN-US style="FONT-SIZE: 8pt; FONT-FAMILY: 'Courier New'; mso-ansi-language: en-us; mso-no-proof: yes"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="COLOR: gray"&gt;///&lt;/SPAN&gt;&lt;SPAN style="COLOR: green"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR: gray"&gt;&amp;lt;summary&amp;gt; &lt;BR&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN lang=EN-US style="FONT-SIZE: 8pt; FONT-FAMILY: 'Courier New'; mso-ansi-language: en-us; mso-no-proof: yes"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="COLOR: gray"&gt;///&lt;/SPAN&gt;&lt;SPAN style="COLOR: green"&gt; Finder method for finding Customers &lt;BR&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN lang=EN-US style="FONT-SIZE: 8pt; FONT-FAMILY: 'Courier New'; mso-ansi-language: en-us; mso-no-proof: yes"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="COLOR: gray"&gt;///&lt;/SPAN&gt;&lt;SPAN style="COLOR: green"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR: gray"&gt;&amp;lt;/summary&amp;gt; &lt;BR&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN lang=EN-US style="FONT-SIZE: 8pt; FONT-FAMILY: 'Courier New'; mso-ansi-language: en-us; mso-no-proof: yes"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="COLOR: gray"&gt;///&lt;/SPAN&gt;&lt;SPAN style="COLOR: green"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR: gray"&gt;&amp;lt;param name="no"&amp;gt;&lt;/SPAN&gt;&lt;SPAN style="COLOR: green"&gt;Filter parameter for the Customer No.&lt;/SPAN&gt;&lt;SPAN style="COLOR: gray"&gt;&amp;lt;/param&amp;gt; &lt;BR&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN lang=EN-US style="FONT-SIZE: 8pt; FONT-FAMILY: 'Courier New'; mso-ansi-language: en-us; mso-no-proof: yes"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="COLOR: gray"&gt;///&lt;/SPAN&gt;&lt;SPAN style="COLOR: green"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR: gray"&gt;&amp;lt;param name="name"&amp;gt;&lt;/SPAN&gt;&lt;SPAN style="COLOR: green"&gt;Filter parameter for the Customer Name&lt;/SPAN&gt;&lt;SPAN style="COLOR: gray"&gt;&amp;lt;/param&amp;gt; &lt;BR&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN lang=EN-US style="FONT-SIZE: 8pt; FONT-FAMILY: 'Courier New'; mso-ansi-language: en-us; mso-no-proof: yes"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="COLOR: gray"&gt;///&lt;/SPAN&gt;&lt;SPAN style="COLOR: green"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR: gray"&gt;&amp;lt;param name="noOfRecordsToReturn"&amp;gt;&lt;/SPAN&gt;&lt;SPAN style="COLOR: green"&gt;Number of Customers to return&lt;/SPAN&gt;&lt;SPAN style="COLOR: gray"&gt;&amp;lt;/param&amp;gt; &lt;BR&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN lang=EN-US style="FONT-SIZE: 8pt; FONT-FAMILY: 'Courier New'; mso-ansi-language: en-us; mso-no-proof: yes"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="COLOR: gray"&gt;///&lt;/SPAN&gt;&lt;SPAN style="COLOR: green"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR: gray"&gt;&amp;lt;returns&amp;gt;Array of &lt;/SPAN&gt;&lt;SPAN style="COLOR: green"&gt;Customer objects, with all the fields on a Customer&lt;/SPAN&gt;&lt;SPAN style="COLOR: gray"&gt;&amp;lt;/returns&amp;gt; &lt;BR&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN lang=EN-US style="FONT-SIZE: 8pt; FONT-FAMILY: 'Courier New'; mso-ansi-language: en-us; mso-no-proof: yes"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;[&lt;SPAN style="COLOR: #2b91af"&gt;WebMethod&lt;/SPAN&gt;] &lt;BR&gt;&lt;/SPAN&gt;&lt;SPAN lang=EN-US style="FONT-SIZE: 8pt; FONT-FAMILY: 'Courier New'; mso-ansi-language: en-us; mso-no-proof: yes"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="COLOR: blue"&gt;public&lt;/SPAN&gt; &lt;SPAN style="COLOR: #2b91af"&gt;Customer&lt;/SPAN&gt;[] CustomerFinder(&lt;SPAN style="COLOR: blue"&gt;string&lt;/SPAN&gt; no, &lt;SPAN style="COLOR: blue"&gt;string&lt;/SPAN&gt; name, &lt;SPAN style="COLOR: blue"&gt;int&lt;/SPAN&gt; noOfRecordsToReturn) &lt;BR&gt;&lt;/SPAN&gt;&lt;SPAN lang=EN-US style="FONT-SIZE: 8pt; FONT-FAMILY: 'Courier New'; mso-ansi-language: en-us; mso-no-proof: yes"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;{ &lt;BR&gt;&lt;/SPAN&gt;&lt;SPAN lang=EN-US style="FONT-SIZE: 8pt; FONT-FAMILY: 'Courier New'; mso-ansi-language: en-us; mso-no-proof: yes"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="COLOR: #2b91af"&gt;Customer_Service&lt;/SPAN&gt; service = &lt;SPAN style="COLOR: blue"&gt;new&lt;/SPAN&gt; &lt;SPAN style="COLOR: #2b91af"&gt;Customer_Service&lt;/SPAN&gt;(); &lt;BR&gt;&lt;/SPAN&gt;&lt;SPAN lang=EN-US style="FONT-SIZE: 8pt; FONT-FAMILY: 'Courier New'; mso-ansi-language: en-us; mso-no-proof: yes"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;service.UseDefaultCredentials = &lt;SPAN style="COLOR: blue"&gt;true&lt;/SPAN&gt;;&amp;nbsp; &lt;BR&gt;&lt;/SPAN&gt;&lt;SPAN lang=EN-US style="FONT-SIZE: 8pt; FONT-FAMILY: 'Courier New'; mso-ansi-language: en-us; mso-no-proof: yes"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;service.Url = &lt;SPAN style="COLOR: #a31515"&gt;&lt;A href="http://localhost:7047/DynamicsNAV/WS/CRONUS_International_Ltd/Page/Customer" mce_href="http://localhost:7047/DynamicsNAV/WS/CRONUS_International_Ltd/Page/Customer"&gt;http://localhost:7047/DynamicsNAV/WS/CRONUS_International_Ltd/Page/Customer&lt;/A&gt;&lt;/SPAN&gt;;&amp;nbsp; &lt;BR&gt;&lt;/SPAN&gt;&lt;SPAN lang=EN-US style="FONT-SIZE: 8pt; FONT-FAMILY: 'Courier New'; mso-ansi-language: en-us; mso-no-proof: yes"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="COLOR: #2b91af"&gt;List&lt;/SPAN&gt;&amp;lt;&lt;SPAN style="COLOR: #2b91af"&gt;Customer_Filter&lt;/SPAN&gt;&amp;gt; filters = &lt;SPAN style="COLOR: blue"&gt;new&lt;/SPAN&gt; &lt;SPAN style="COLOR: #2b91af"&gt;List&lt;/SPAN&gt;&amp;lt;&lt;SPAN style="COLOR: #2b91af"&gt;Customer_Filter&lt;/SPAN&gt;&amp;gt;();&amp;nbsp; &lt;BR&gt;&lt;/SPAN&gt;&lt;SPAN lang=EN-US style="FONT-SIZE: 8pt; FONT-FAMILY: 'Courier New'; mso-ansi-language: en-us; mso-no-proof: yes"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="COLOR: blue"&gt;if&lt;/SPAN&gt; (!&lt;SPAN style="COLOR: blue"&gt;string&lt;/SPAN&gt;.IsNullOrEmpty(no)) &lt;BR&gt;&lt;/SPAN&gt;&lt;SPAN lang=EN-US style="FONT-SIZE: 8pt; FONT-FAMILY: 'Courier New'; mso-ansi-language: en-us; mso-no-proof: yes"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;{ &lt;BR&gt;&lt;/SPAN&gt;&lt;SPAN lang=EN-US style="FONT-SIZE: 8pt; FONT-FAMILY: 'Courier New'; mso-ansi-language: en-us; mso-no-proof: yes"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="COLOR: #2b91af"&gt;Customer_Filter&lt;/SPAN&gt; filter = &lt;SPAN style="COLOR: blue"&gt;new&lt;/SPAN&gt; &lt;SPAN style="COLOR: #2b91af"&gt;Customer_Filter&lt;/SPAN&gt;(); &lt;BR&gt;&lt;/SPAN&gt;&lt;SPAN lang=EN-US style="FONT-SIZE: 8pt; FONT-FAMILY: 'Courier New'; mso-ansi-language: en-us; mso-no-proof: yes"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;filter.Field = &lt;SPAN style="COLOR: #2b91af"&gt;Customer_Fields&lt;/SPAN&gt;.No; &lt;BR&gt;&lt;/SPAN&gt;&lt;SPAN lang=EN-US style="FONT-SIZE: 8pt; FONT-FAMILY: 'Courier New'; mso-ansi-language: en-us; mso-no-proof: yes"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;filter.Criteria = no; &lt;BR&gt;&lt;/SPAN&gt;&lt;SPAN lang=EN-US style="FONT-SIZE: 8pt; FONT-FAMILY: 'Courier New'; mso-ansi-language: en-us; mso-no-proof: yes"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;filters.Add(filter); &lt;BR&gt;&lt;/SPAN&gt;&lt;SPAN lang=EN-US style="FONT-SIZE: 8pt; FONT-FAMILY: 'Courier New'; mso-ansi-language: en-us; mso-no-proof: yes"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;}&amp;nbsp; &lt;BR&gt;&lt;/SPAN&gt;&lt;SPAN lang=EN-US style="FONT-SIZE: 8pt; FONT-FAMILY: 'Courier New'; mso-ansi-language: en-us; mso-no-proof: yes"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="COLOR: blue"&gt;if&lt;/SPAN&gt; (!&lt;SPAN style="COLOR: blue"&gt;string&lt;/SPAN&gt;.IsNullOrEmpty(name)) &lt;BR&gt;&lt;/SPAN&gt;&lt;SPAN lang=EN-US style="FONT-SIZE: 8pt; FONT-FAMILY: 'Courier New'; mso-ansi-language: en-us; mso-no-proof: yes"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;{ &lt;BR&gt;&lt;/SPAN&gt;&lt;SPAN lang=EN-US style="FONT-SIZE: 8pt; FONT-FAMILY: 'Courier New'; mso-ansi-language: en-us; mso-no-proof: yes"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="COLOR: #2b91af"&gt;Customer_Filter&lt;/SPAN&gt; filter = &lt;SPAN style="COLOR: blue"&gt;new&lt;/SPAN&gt; &lt;SPAN style="COLOR: #2b91af"&gt;Customer_Filter&lt;/SPAN&gt;(); &lt;BR&gt;&lt;/SPAN&gt;&lt;SPAN lang=EN-US style="FONT-SIZE: 8pt; FONT-FAMILY: 'Courier New'; mso-ansi-language: en-us; mso-no-proof: yes"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;filter.Field = &lt;SPAN style="COLOR: #2b91af"&gt;Customer_Fields&lt;/SPAN&gt;.Name; &lt;BR&gt;&lt;/SPAN&gt;&lt;SPAN lang=EN-US style="FONT-SIZE: 8pt; FONT-FAMILY: 'Courier New'; mso-ansi-language: en-us; mso-no-proof: yes"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;filter.Criteria = name; &lt;BR&gt;&lt;/SPAN&gt;&lt;SPAN lang=EN-US style="FONT-SIZE: 8pt; FONT-FAMILY: 'Courier New'; mso-ansi-language: en-us; mso-no-proof: yes"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;filters.Add(filter); &lt;BR&gt;&lt;/SPAN&gt;&lt;SPAN lang=EN-US style="FONT-SIZE: 8pt; FONT-FAMILY: 'Courier New'; mso-ansi-language: en-us; mso-no-proof: yes"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;}&amp;nbsp; &lt;BR&gt;&lt;/SPAN&gt;&lt;SPAN lang=EN-US style="FONT-SIZE: 8pt; FONT-FAMILY: 'Courier New'; mso-ansi-language: en-us; mso-no-proof: yes"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="COLOR: blue"&gt;return&lt;/SPAN&gt; service.ReadMultiple(filters.ToArray(), &lt;SPAN style="COLOR: blue"&gt;null&lt;/SPAN&gt;, noOfRecordsToReturn); &lt;BR&gt;&lt;/SPAN&gt;&lt;SPAN lang=EN-US style="FONT-SIZE: 8pt; FONT-FAMILY: 'Courier New'; mso-ansi-language: en-us; mso-no-proof: yes"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;} &lt;BR&gt;&lt;/SPAN&gt;&lt;SPAN lang=EN-US style="FONT-SIZE: 8pt; FONT-FAMILY: 'Courier New'; mso-ansi-language: en-us; mso-no-proof: yes"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;} &lt;BR&gt;&lt;/SPAN&gt;&lt;SPAN lang=EN-US style="FONT-SIZE: 8pt; FONT-FAMILY: 'Courier New'; mso-ansi-language: en-us; mso-no-proof: yes"&gt;}&lt;/SPAN&gt;&lt;SPAN lang=EN-US style="mso-ansi-language: en-us"&gt;&amp;nbsp;&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class=MsoNormal&gt;&lt;SPAN lang=EN-US style="mso-ansi-language: en-us"&gt;The code simply adds a Web Method called CustomerFinder. This is the Method that Business Data Catalog will use to get data. &lt;/SPAN&gt;&lt;/P&gt;
&lt;P mce_keep="true"&gt;&lt;SPAN lang=EN-US style="mso-ansi-language: en-us"&gt;The Method takes two Filter Parameters “no” and “name”. For this example I have chosen only to enable filtering on those two fields, but you can add other fields as well. Business Data Catalog supports up to a total of 30 parameters to the Finder Method. &lt;/SPAN&gt;&lt;/P&gt;
&lt;P mce_keep="true"&gt;&lt;SPAN lang=EN-US style="mso-ansi-language: en-us"&gt;The third parameter called “noOfRecordsToReturn” is used by Business Data Catalog to limit the number of records to look for within the filter. This protects your service from excessive unfiltered requests from the SharePoint users. &lt;/SPAN&gt;&lt;/P&gt;
&lt;P mce_keep="true"&gt;&lt;SPAN lang=EN-US style="mso-ansi-language: en-us"&gt;The Method simply adds the two filters to a Filter List, and calls the ReadMultiple Method on the NAV 2009 Web Service, passing the Filter List and the noOfRecordsToReturn parameter. &lt;/SPAN&gt;&lt;/P&gt;
&lt;P mce_keep="true"&gt;&lt;SPAN lang=EN-US style="mso-ansi-language: en-us"&gt;The Method returns an array of Customer Objects as defined by the NAV 2009 Web Service. &lt;/SPAN&gt;&lt;/P&gt;
&lt;P mce_keep="true"&gt;&lt;SPAN lang=EN-US style="mso-ansi-language: en-us"&gt;The new Web Service is now done, and you should try it. Simply run the web service from Visual Studio, and invoke the CustomerFinder Method with the parameters no=10000 and noOfRecordsToReturn=1 &lt;/SPAN&gt;&lt;/P&gt;
&lt;P mce_keep="true"&gt;&lt;A href="http://blogs.msdn.com/blogfiles/pchriste/WindowsLiveWriter/ExposingNAVDatatoSharePointusingBusiness_439/Picture06_2.png" mce_href="http://blogs.msdn.com/blogfiles/pchriste/WindowsLiveWriter/ExposingNAVDatatoSharePointusingBusiness_439/Picture06_2.png"&gt;&lt;IMG title=Picture06 style="BORDER-TOP-WIDTH: 0px; DISPLAY: inline; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; BORDER-RIGHT-WIDTH: 0px" height=150 alt=Picture06 src="http://blogs.msdn.com/blogfiles/pchriste/WindowsLiveWriter/ExposingNAVDatatoSharePointusingBusiness_439/Picture06_thumb.png" width=317 border=0 mce_src="http://blogs.msdn.com/blogfiles/pchriste/WindowsLiveWriter/ExposingNAVDatatoSharePointusingBusiness_439/Picture06_thumb.png"&gt;&lt;/A&gt; &lt;/P&gt;
&lt;P class=MsoNormal&gt;&lt;SPAN lang=EN-US style="mso-ansi-language: en-us"&gt;You should now get an XML document with the Customer data for the Customer 10000 – “The Cannon Group PLC” &lt;/SPAN&gt;&lt;/P&gt;
&lt;P mce_keep="true"&gt;&lt;SPAN lang=EN-US style="mso-ansi-language: en-us"&gt;You can now deploy the new web service, but for the walkthrough we will just stay with the Service running on the ASP.NET Development Server in Visual Studio. Just make sure that the Web Service is running in Visual Studio. The name of the new Web Service will then be (Your port number might be different): &lt;/SPAN&gt;&lt;/P&gt;
&lt;P mce_keep="true"&gt;&lt;A href="http://localhost:55241/NavBdcWebService.asmx" mce_href="http://localhost:55241/NavBdcWebService.asmx?op=CustomerFinder"&gt;&lt;SPAN lang=EN-US style="mso-ansi-language: en-us"&gt;http://localhost:55241/NavBdcWebService.asmx&lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN lang=EN-US style="mso-ansi-language: en-us"&gt; &lt;/SPAN&gt;&lt;/P&gt;
&lt;H3&gt;Step 3: Creating the BDC Application Definition File &lt;/H3&gt;
&lt;P class=MsoNormal&gt;&lt;SPAN lang=EN-US style="mso-ansi-language: en-us"&gt;In order to tell BDC (Business Data Catalog) how the Customer Entity is structured, we need to create an Application Definition File. This is an XML file, but creating it manually is not trivial, so we will use the Business Data Catalog Definition Editor that come as part of the SharePoint Server 2007 SDK: &lt;/SPAN&gt;&lt;/P&gt;
&lt;P mce_keep="true"&gt;&lt;A href="http://www.microsoft.com/downloads/details.aspx?familyid=6d94e307-67d9-41ac-b2d6-0074d6286fa9&amp;amp;displaylang=en" mce_href="http://www.microsoft.com/downloads/details.aspx?familyid=6d94e307-67d9-41ac-b2d6-0074d6286fa9&amp;amp;displaylang=en"&gt;&lt;SPAN lang=EN-US style="mso-ansi-language: en-us"&gt;http://www.microsoft.com/downloads/details.aspx?familyid=6d94e307-67d9-41ac-b2d6-0074d6286fa9&amp;amp;displaylang=en&lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN lang=EN-US style="mso-ansi-language: en-us"&gt; &lt;/SPAN&gt;&lt;/P&gt;
&lt;P mce_keep="true"&gt;&lt;SPAN lang=EN-US style="mso-ansi-language: en-us"&gt;In the Business Data Catalog Definition Editor, Add a new LOB System. We want to connect to a Web Service, so specify the URL for the NavBdcWebService that you just created:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal&gt;&lt;A href="http://blogs.msdn.com/blogfiles/pchriste/WindowsLiveWriter/ExposingNAVDatatoSharePointusingBusiness_439/Picture07_2.png" mce_href="http://blogs.msdn.com/blogfiles/pchriste/WindowsLiveWriter/ExposingNAVDatatoSharePointusingBusiness_439/Picture07_2.png"&gt;&lt;IMG title=Picture07 style="BORDER-TOP-WIDTH: 0px; DISPLAY: inline; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; BORDER-RIGHT-WIDTH: 0px" height=224 alt=Picture07 src="http://blogs.msdn.com/blogfiles/pchriste/WindowsLiveWriter/ExposingNAVDatatoSharePointusingBusiness_439/Picture07_thumb.png" width=426 border=0 mce_src="http://blogs.msdn.com/blogfiles/pchriste/WindowsLiveWriter/ExposingNAVDatatoSharePointusingBusiness_439/Picture07_thumb.png"&gt;&lt;/A&gt; &lt;/P&gt;
&lt;P class=MsoNormal&gt;&lt;SPAN style="mso-fareast-language: da; mso-no-proof: yes"&gt;&lt;SHAPE id=_x0000_i1048 style="VISIBILITY: visible; WIDTH: 313.5pt; HEIGHT: 162.75pt; mso-wrap-style: square" type="#_x0000_t75"&gt;&lt;IMAGEDATA mce_src="file:///C:\Users\pchriste\AppData\Local\Temp\1\msohtmlclip1\01\clip_image007.png" src="file:///C:\Users\pchriste\AppData\Local\Temp\1\msohtmlclip1\01\clip_image007.png" o:title="o:title"&gt;&lt;/IMAGEDATA&gt;&lt;/SHAPE&gt;&lt;/SPAN&gt;&lt;SPAN lang=EN-US style="mso-ansi-language: en-us"&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P mce_keep="true"&gt;&lt;SPAN lang=EN-US style="mso-ansi-language: en-us"&gt;Click Connect, and drag the CustomerFinder Method into the Design Surface &lt;/SPAN&gt;&lt;/P&gt;
&lt;P mce_keep="true"&gt;&lt;A href="http://blogs.msdn.com/blogfiles/pchriste/WindowsLiveWriter/ExposingNAVDatatoSharePointusingBusiness_439/Picture08_2.png" mce_href="http://blogs.msdn.com/blogfiles/pchriste/WindowsLiveWriter/ExposingNAVDatatoSharePointusingBusiness_439/Picture08_2.png"&gt;&lt;IMG title=Picture08 style="BORDER-TOP-WIDTH: 0px; DISPLAY: inline; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; BORDER-RIGHT-WIDTH: 0px" height=298 alt=Picture08 src="http://blogs.msdn.com/blogfiles/pchriste/WindowsLiveWriter/ExposingNAVDatatoSharePointusingBusiness_439/Picture08_thumb.png" width=398 border=0 mce_src="http://blogs.msdn.com/blogfiles/pchriste/WindowsLiveWriter/ExposingNAVDatatoSharePointusingBusiness_439/Picture08_thumb.png"&gt;&lt;/A&gt; &lt;/P&gt;
&lt;P class=MsoNormal&gt;&lt;SPAN lang=EN-US style="mso-ansi-language: en-us"&gt;Click OK, and name the System NavLobSystem. &lt;/SPAN&gt;&lt;/P&gt;
&lt;P mce_keep="true"&gt;&lt;SPAN lang=EN-US style="mso-ansi-language: en-us"&gt;The Business Data Catalog Definition editor has now imported the information from the Web Service, but unfortunately there are a number of manual steps that you need to do to set this up properly. When you have done this for this Entity&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/SPAN&gt;(Customer) it is pretty easy to do the same for an additional Entity. &lt;/SPAN&gt;&lt;/P&gt;
&lt;P mce_keep="true"&gt;&lt;SPAN lang=EN-US style="mso-ansi-language: en-us"&gt;Set the Version of NavLobSystem to “1.0.0.0” and WildcardCharacter to “*” &lt;/SPAN&gt;&lt;/P&gt;
&lt;P mce_keep="true"&gt;&lt;SPAN lang=EN-US style="mso-ansi-language: en-us"&gt;Also rename the Entity to be called “Customer”.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal&gt;&lt;A href="http://blogs.msdn.com/blogfiles/pchriste/WindowsLiveWriter/ExposingNAVDatatoSharePointusingBusiness_439/Picture09_2.png" mce_href="http://blogs.msdn.com/blogfiles/pchriste/WindowsLiveWriter/ExposingNAVDatatoSharePointusingBusiness_439/Picture09_2.png"&gt;&lt;IMG title=Picture09 style="BORDER-TOP-WIDTH: 0px; DISPLAY: inline; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; BORDER-RIGHT-WIDTH: 0px" height=434 alt=Picture09 src="http://blogs.msdn.com/blogfiles/pchriste/WindowsLiveWriter/ExposingNAVDatatoSharePointusingBusiness_439/Picture09_thumb.png" width=651 border=0 mce_src="http://blogs.msdn.com/blogfiles/pchriste/WindowsLiveWriter/ExposingNAVDatatoSharePointusingBusiness_439/Picture09_thumb.png"&gt;&lt;/A&gt;&amp;nbsp; &lt;/P&gt;
&lt;H4&gt;Adding an Identifier for the Customer &lt;SPAN lang=EN-US style="mso-ansi-language: en-us"&gt;&lt;/SPAN&gt;&lt;/H4&gt;
&lt;P class=MsoNormal&gt;&lt;SPAN lang=EN-US style="mso-ansi-language: en-us"&gt;In order to identify an Entity in the Business Data Catalog, you need to add an Identifier. Call the Identifier “No”, and leave the default datatype to System.String:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal&gt;&lt;A href="http://blogs.msdn.com/blogfiles/pchriste/WindowsLiveWriter/ExposingNAVDatatoSharePointusingBusiness_439/Picture10_2.png" mce_href="http://blogs.msdn.com/blogfiles/pchriste/WindowsLiveWriter/ExposingNAVDatatoSharePointusingBusiness_439/Picture10_2.png"&gt;&lt;IMG title=Picture10 style="BORDER-TOP-WIDTH: 0px; DISPLAY: inline; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; BORDER-RIGHT-WIDTH: 0px" height=434 alt=Picture10 src="http://blogs.msdn.com/blogfiles/pchriste/WindowsLiveWriter/ExposingNAVDatatoSharePointusingBusiness_439/Picture10_thumb.png" width=651 border=0 mce_src="http://blogs.msdn.com/blogfiles/pchriste/WindowsLiveWriter/ExposingNAVDatatoSharePointusingBusiness_439/Picture10_thumb.png"&gt;&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;H4&gt;Defining Filters for the CustomerFinder Method &lt;SPAN lang=EN-US style="mso-ansi-language: en-us"&gt;&lt;/SPAN&gt;&lt;/H4&gt;
&lt;P class=MsoNormal&gt;&lt;SPAN lang=EN-US style="mso-ansi-language: en-us"&gt;We have already imported most of the data for the CustomerFinder Method, but we need to define the Filters for the two filter parameters No and Name. Create both of them as WildcardFilter &lt;/SPAN&gt;&lt;/P&gt;
&lt;P mce_keep="true"&gt;&lt;SPAN lang=EN-US style="mso-ansi-language: en-us"&gt;In order to limit the number of records to search for, you should also create a Filter called Limit of type “Limit”:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal&gt;&lt;A href="http://blogs.msdn.com/blogfiles/pchriste/WindowsLiveWriter/ExposingNAVDatatoSharePointusingBusiness_439/Picture11_2.png" mce_href="http://blogs.msdn.com/blogfiles/pchriste/WindowsLiveWriter/ExposingNAVDatatoSharePointusingBusiness_439/Picture11_2.png"&gt;&lt;IMG title=Picture11 style="BORDER-TOP-WIDTH: 0px; DISPLAY: inline; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; BORDER-RIGHT-WIDTH: 0px" height=434 alt=Picture11 src="http://blogs.msdn.com/blogfiles/pchriste/WindowsLiveWriter/ExposingNAVDatatoSharePointusingBusiness_439/Picture11_thumb.png" width=651 border=0 mce_src="http://blogs.msdn.com/blogfiles/pchriste/WindowsLiveWriter/ExposingNAVDatatoSharePointusingBusiness_439/Picture11_thumb.png"&gt;&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;H4&gt;Defining Parameters for the CustomerFinder Method &lt;SPAN lang=EN-US style="mso-ansi-language: en-us"&gt;&lt;/SPAN&gt;&lt;/H4&gt;
&lt;P class=MsoNormal&gt;&lt;SPAN lang=EN-US style="mso-ansi-language: en-us"&gt;We also need to do a little extra work on the parameters of the CustomerFinder Method &lt;/SPAN&gt;&lt;/P&gt;
&lt;P mce_keep="true"&gt;&lt;SPAN lang=EN-US style="mso-ansi-language: en-us"&gt;For the parameter called “no”, set FilterDescriptor to the Filter we just created called “No” and Identifier to the identifier we just created: “No[Customer]” &lt;BR&gt;For the parameter called “name”, set FilterDescriptor to “Name” and leave the Identifier blank &lt;BR&gt;For the parameter called noOfRecordsToReturn, set the FilterDescription to “Limit” and leave the Identifier blank. &lt;BR&gt;For the “No” field of the returned Item (CustomerFinder-&amp;gt;Parameters-&amp;gt;Return-&amp;gt;Return-&amp;gt;Item-&amp;gt;No), also set the Identifier to “No[Customer]”&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal&gt;&lt;A href="http://blogs.msdn.com/blogfiles/pchriste/WindowsLiveWriter/ExposingNAVDatatoSharePointusingBusiness_439/Picture12_2.png" mce_href="http://blogs.msdn.com/blogfiles/pchriste/WindowsLiveWriter/ExposingNAVDatatoSharePointusingBusiness_439/Picture12_2.png"&gt;&lt;IMG title=Picture12 style="BORDER-TOP-WIDTH: 0px; DISPLAY: inline; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; BORDER-RIGHT-WIDTH: 0px" height=434 alt=Picture12 src="http://blogs.msdn.com/blogfiles/pchriste/WindowsLiveWriter/ExposingNAVDatatoSharePointusingBusiness_439/Picture12_thumb.png" width=651 border=0 mce_src="http://blogs.msdn.com/blogfiles/pchriste/WindowsLiveWriter/ExposingNAVDatatoSharePointusingBusiness_439/Picture12_thumb.png"&gt;&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;H4&gt;Defining the Method Instances &lt;SPAN lang=EN-US style="mso-ansi-language: en-us"&gt;&lt;/SPAN&gt;&lt;/H4&gt;
&lt;P class=MsoNormal&gt;&lt;SPAN lang=EN-US style="mso-ansi-language: en-us"&gt;In order for the BDC to call the Finder Method, we need to define a number of different Method Instances.&lt;/SPAN&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;
&lt;DIV class=MsoNormal&gt;&lt;SPAN lang=EN-US style="mso-ansi-language: en-us"&gt;&lt;/SPAN&gt;&lt;SPAN lang=EN-US style="mso-ansi-language: en-us"&gt;An Enumerator&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/LI&gt;
&lt;LI&gt;
&lt;DIV class=MsoNormal&gt;&lt;SPAN lang=EN-US style="mso-ansi-language: en-us"&gt;A Finder&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/LI&gt;
&lt;LI&gt;
&lt;DIV class=MsoNormal&gt;&lt;SPAN lang=EN-US style="mso-ansi-language: en-us"&gt;&lt;/SPAN&gt;&lt;SPAN lang=EN-US style="mso-ansi-language: en-us"&gt;A Specific Finder&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/LI&gt;&lt;/UL&gt;
&lt;P class=MsoNormal&gt;&lt;SPAN lang=EN-US style="mso-ansi-language: en-us"&gt;The first one is of type idEnumerator. It can return all the Identifiers for the Customers. Call this Method Instance “GetCustomerIDs”&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal&gt;&lt;A href="http://blogs.msdn.com/blogfiles/pchriste/WindowsLiveWriter/ExposingNAVDatatoSharePointusingBusiness_439/Picture13_2.png" mce_href="http://blogs.msdn.com/blogfiles/pchriste/WindowsLiveWriter/ExposingNAVDatatoSharePointusingBusiness_439/Picture13_2.png"&gt;&lt;IMG title=Picture13 style="BORDER-TOP-WIDTH: 0px; DISPLAY: inline; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; BORDER-RIGHT-WIDTH: 0px" height=434 alt=Picture13 src="http://blogs.msdn.com/blogfiles/pchriste/WindowsLiveWriter/ExposingNAVDatatoSharePointusingBusiness_439/Picture13_thumb.png" width=651 border=0 mce_src="http://blogs.msdn.com/blogfiles/pchriste/WindowsLiveWriter/ExposingNAVDatatoSharePointusingBusiness_439/Picture13_thumb.png"&gt;&lt;/A&gt; &lt;/P&gt;
&lt;P class=MsoNormal&gt;&lt;SPAN style="mso-fareast-language: da; mso-no-proof: yes"&gt;&lt;SHAPE id=_x0000_i1042 style="VISIBILITY: visible; WIDTH: 481.5pt; HEIGHT: 319.5pt; mso-wrap-style: square" type="#_x0000_t75"&gt;&lt;IMAGEDATA mce_src="file:///C:\Users\pchriste\AppData\Local\Temp\1\msohtmlclip1\01\clip_image013.png" src="file:///C:\Users\pchriste\AppData\Local\Temp\1\msohtmlclip1\01\clip_image013.png" o:title="o:title"&gt;&lt;/IMAGEDATA&gt;&lt;/SHAPE&gt;&lt;/SPAN&gt;&lt;SPAN lang=EN-US style="mso-ansi-language: en-us"&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P mce_keep="true"&gt;&lt;SPAN lang=EN-US style="mso-ansi-language: en-us"&gt;You can actually try this Method Instance in the Business Data Catalog Definition Editor. Simply click “Execute” and “Next” on the form that opens. You should now get a list of Customer IDs:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal&gt;&lt;A href="http://blogs.msdn.com/blogfiles/pchriste/WindowsLiveWriter/ExposingNAVDatatoSharePointusingBusiness_439/Picture14_2.png" mce_href="http://blogs.msdn.com/blogfiles/pchriste/WindowsLiveWriter/ExposingNAVDatatoSharePointusingBusiness_439/Picture14_2.png"&gt;&lt;IMG title=Picture14 style="BORDER-TOP-WIDTH: 0px; DISPLAY: inline; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; BORDER-RIGHT-WIDTH: 0px" height=296 alt=Picture14 src="http://blogs.msdn.com/blogfiles/pchriste/WindowsLiveWriter/ExposingNAVDatatoSharePointusingBusiness_439/Picture14_thumb.png" width=421 border=0 mce_src="http://blogs.msdn.com/blogfiles/pchriste/WindowsLiveWriter/ExposingNAVDatatoSharePointusingBusiness_439/Picture14_thumb.png"&gt;&lt;/A&gt; &lt;/P&gt;
&lt;P class=MsoNormal&gt;&lt;SPAN style="mso-fareast-language: da; mso-no-proof: yes"&gt;&lt;SHAPE id=_x0000_i1041 style="VISIBILITY: visible; WIDTH: 309.75pt; HEIGHT: 3in; mso-wrap-style: square" type="#_x0000_t75"&gt;&lt;IMAGEDATA mce_src="file:///C:\Users\pchriste\AppData\Local\Temp\1\msohtmlclip1\01\clip_image014.png" src="file:///C:\Users\pchriste\AppData\Local\Temp\1\msohtmlclip1\01\clip_image014.png" o:title="o:title"&gt;&lt;/IMAGEDATA&gt;&lt;/SHAPE&gt;&lt;/SPAN&gt;&lt;SPAN lang=EN-US style="mso-ansi-language: en-us"&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P mce_keep="true"&gt;&lt;SPAN lang=EN-US style="mso-ansi-language: en-us"&gt;The second Method Instance is of type SpecificFinder, and it can find an Entity for a specific Identifier. Call this Method Instance “FindCustomer”&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal&gt;&lt;A href="http://blogs.msdn.com/blogfiles/pchriste/WindowsLiveWriter/ExposingNAVDatatoSharePointusingBusiness_439/Picture15_2.png" mce_href="http://blogs.msdn.com/blogfiles/pchriste/WindowsLiveWriter/ExposingNAVDatatoSharePointusingBusiness_439/Picture15_2.png"&gt;&lt;IMG title=Picture15 style="BORDER-TOP-WIDTH: 0px; DISPLAY: inline; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; BORDER-RIGHT-WIDTH: 0px" height=434 alt=Picture15 src="http://blogs.msdn.com/blogfiles/pchriste/WindowsLiveWriter/ExposingNAVDatatoSharePointusingBusiness_439/Picture15_thumb.png" width=651 border=0 mce_src="http://blogs.msdn.com/blogfiles/pchriste/WindowsLiveWriter/ExposingNAVDatatoSharePointusingBusiness_439/Picture15_thumb.png"&gt;&lt;/A&gt; &lt;/P&gt;
&lt;P class=MsoNormal&gt;&lt;SPAN style="mso-fareast-language: da; mso-no-proof: yes"&gt;&lt;SHAPE id=_x0000_i1040 style="VISIBILITY: visible; WIDTH: 481.5pt; HEIGHT: 319.5pt; mso-wrap-style: square" type="#_x0000_t75"&gt;&lt;IMAGEDATA mce_src="file:///C:\Users\pchriste\AppData\Local\Temp\1\msohtmlclip1\01\clip_image015.png" src="file:///C:\Users\pchriste\AppData\Local\Temp\1\msohtmlclip1\01\clip_image015.png" o:title="o:title"&gt;&lt;/IMAGEDATA&gt;&lt;/SHAPE&gt;&lt;/SPAN&gt;&lt;SPAN lang=EN-US style="mso-ansi-language: en-us"&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P mce_keep="true"&gt;&lt;SPAN lang=EN-US style="mso-ansi-language: en-us"&gt;The last Method Instance is of type Finder, and it is used to return multiple Entities. Call this Method Instance “FindCustomers” &lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal&gt;&lt;A href="http://blogs.msdn.com/blogfiles/pchriste/WindowsLiveWriter/ExposingNAVDatatoSharePointusingBusiness_439/Picture16_2.png" mce_href="http://blogs.msdn.com/blogfiles/pchriste/WindowsLiveWriter/ExposingNAVDatatoSharePointusingBusiness_439/Picture16_2.png"&gt;&lt;IMG title=Picture16 style="BORDER-TOP-WIDTH: 0px; DISPLAY: inline; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; BORDER-RIGHT-WIDTH: 0px" height=434 alt=Picture16 src="http://blogs.msdn.com/blogfiles/pchriste/WindowsLiveWriter/ExposingNAVDatatoSharePointusingBusiness_439/Picture16_thumb.png" width=651 border=0 mce_src="http://blogs.msdn.com/blogfiles/pchriste/WindowsLiveWriter/ExposingNAVDatatoSharePointusingBusiness_439/Picture16_thumb.png"&gt;&lt;/A&gt; &lt;SPAN lang=EN-US style="mso-ansi-language: en-us"&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P mce_keep="true"&gt;&lt;SPAN lang=EN-US style="mso-ansi-language: en-us"&gt;You can also test the two other Method Instances directly in the Business Data Catalog Definition Editor. Click Execute on each of them to validate that they work as expected. &lt;/SPAN&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;
&lt;DIV&gt;&lt;SPAN lang=EN-US style="mso-ansi-language: en-us"&gt;FindCustomer should return a single Customer when specifying a Customer No&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/LI&gt;
&lt;LI&gt;
&lt;DIV&gt;&lt;SPAN lang=EN-US style="mso-ansi-language: en-us"&gt;FindCustomers should return a list of Customers within the filter specified &lt;/SPAN&gt;&lt;/DIV&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;SPAN lang=EN-US style="mso-ansi-language: en-us"&gt;
&lt;P&gt;&lt;SPAN lang=EN-US style="mso-ansi-language: en-us"&gt;&lt;/SPAN&gt;&lt;SPAN lang=EN-US style="mso-ansi-language: en-us"&gt;Note: The result page has a lot of fields, so it is difficult to see exactly which Customers is returned. You can expand some of the columns to see more of the content. &lt;/SPAN&gt;&lt;/P&gt;&lt;/SPAN&gt;
&lt;H4&gt;Adding Display Names for the Parameters and returned Fields &lt;SPAN lang=EN-US style="mso-ansi-language: en-us"&gt;&lt;/SPAN&gt;&lt;/H4&gt;
&lt;P class=MsoNormal&gt;&lt;SPAN lang=EN-US style="mso-ansi-language: en-us"&gt;By default the display name will be the same as the field name. For some of the fields, this is not nice, because it contains underscores instead of spaces. You can specify a different Display name for each of those, so it looks nicer for the user. &lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal&gt;&lt;A href="http://blogs.msdn.com/blogfiles/pchriste/WindowsLiveWriter/ExposingNAVDatatoSharePointusingBusiness_439/Picture17_2.png" mce_href="http://blogs.msdn.com/blogfiles/pchriste/WindowsLiveWriter/ExposingNAVDatatoSharePointusingBusiness_439/Picture17_2.png"&gt;&lt;IMG title=Picture17 style="BORDER-TOP-WIDTH: 0px; DISPLAY: inline; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; BORDER-RIGHT-WIDTH: 0px" height=434 alt=Picture17 src="http://blogs.msdn.com/blogfiles/pchriste/WindowsLiveWriter/ExposingNAVDatatoSharePointusingBusiness_439/Picture17_thumb.png" width=651 border=0 mce_src="http://blogs.msdn.com/blogfiles/pchriste/WindowsLiveWriter/ExposingNAVDatatoSharePointusingBusiness_439/Picture17_thumb.png"&gt;&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;H4&gt;Export the Application Definition File to an XML file &lt;SPAN lang=EN-US style="mso-ansi-language: en-us"&gt;&lt;/SPAN&gt;&lt;/H4&gt;
&lt;P class=MsoNormal&gt;&lt;SPAN lang=EN-US style="mso-ansi-language: en-us"&gt;Finally you export the Application Definition File to an XML file that can later be imported into SharePoint Business Data Catalog. &lt;/SPAN&gt;&lt;/P&gt;
&lt;P mce_keep="true"&gt;&lt;SPAN lang=EN-US style="mso-ansi-language: en-us"&gt;If you later make changes to the Definition File, then remember to increment the Version Number. This will allow BDC to update existing definitions. &lt;/SPAN&gt;&lt;/P&gt;
&lt;H4&gt;To be continued…&lt;/H4&gt;
&lt;P class=MsoNormal&gt;&lt;SPAN lang=EN-US style="mso-ansi-language: en-us"&gt;This completes the first part of this walkthrough. The second part will show you how you can then use the Web Service and Application Definition File in SharePoint.&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class=MsoNormal&gt;&lt;SPAN lang=EN-US style="mso-ansi-language: en-us"&gt;Thanks &lt;BR&gt;&lt;STRONG&gt;/Bugsy &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9548601" width="1" height="1"&gt;</content><author><name>pchriste_microsoft.com</name><uri>http://blogs.msdn.com/pchriste/ProfileUrlRedirect.ashx</uri></author><category term="Dynamics NAV" scheme="http://blogs.msdn.com/b/pchriste/archive/tags/Dynamics+NAV/" /><category term="SharePoint" scheme="http://blogs.msdn.com/b/pchriste/archive/tags/SharePoint/" /><category term="Web Services" scheme="http://blogs.msdn.com/b/pchriste/archive/tags/Web+Services/" /></entry><entry><title>Welcome to Bugsy's Blog</title><link rel="alternate" type="text/html" href="http://blogs.msdn.com/b/pchriste/archive/2009/04/06/welcome-to-bugsy-s-blog.aspx" /><id>http://blogs.msdn.com/b/pchriste/archive/2009/04/06/welcome-to-bugsy-s-blog.aspx</id><published>2009-04-06T03:35:00Z</published><updated>2009-04-06T03:35:00Z</updated><content type="html">&lt;P&gt;My name is Peter Christensen, and I am Development Manager for the Microsoft Dynamics NAV Client Team. I have worked for Navision and later Microsoft for many years, and I have always been focused on creating a great user experience for the users of our system.&lt;/P&gt;
&lt;P&gt;My nickname at work is "Bugsy", so therefore I decided to call this blog "Bugsy's Blog". The story behind the nickname is a little long, so I will save you for the details - but I can assure you that it does not have anything to do with Bugs or Code Defects in our product...&lt;/P&gt;
&lt;P&gt;Besides being passionate about NAV and Microsoft in general, I also likes working with Developer Processes and Practices, so I might make some Posts on that as well.&lt;/P&gt;
&lt;DIV class=sidebox&gt;It is important to note: The views expressed in this blog are&amp;nbsp;my individual views and do not necessarily represent those of Microsoft. This information is provided by way of general information only and should not be relied on without obtaining independent expert advice. These postings are provided "AS IS" with no warranties and confer no rights. You assume all risk for your use. &lt;/DIV&gt;
&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;/Bugsy&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9532729" width="1" height="1"&gt;</content><author><name>pchriste_microsoft.com</name><uri>http://blogs.msdn.com/pchriste/ProfileUrlRedirect.ashx</uri></author></entry></feed>