<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Microsoft Business Connectivity Services Team Blog</title><link>http://blogs.msdn.com/b/bcs/</link><description /><dc:language>en-US</dc:language><generator>Telligent Evolution Platform Developer Build (Build: 5.6.50428.7875)</generator><item><title>BCS Artifact Generator</title><link>http://blogs.msdn.com/b/bcs/archive/2010/06/04/bcs-artifact-generator.aspx</link><pubDate>Fri, 04 Jun 2010 00:23:02 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10019757</guid><dc:creator>bcsbauth</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blogs.msdn.com/b/bcs/rsscomments.aspx?WeblogPostID=10019757</wfw:commentRss><comments>http://blogs.msdn.com/b/bcs/archive/2010/06/04/bcs-artifact-generator.aspx#comments</comments><description>&lt;p&gt;Chances are you’ve already read Brad Stevenson’s post &lt;a href="http://blogs.msdn.com/bcs/archive/2009/11/12/types-of-solutions.aspx"&gt;Types of Solutions&lt;/a&gt; and you’re interested in building a BCS solution.&lt;/p&gt;  &lt;p&gt;If you’ve read my post on the &lt;a href="http://blogs.msdn.com/bcs/archive/2010/04/25/bcs-solution-packaging-tool.aspx"&gt;BCS Solution Packaging Tool&lt;/a&gt;, perhaps you’ve already tried to build and package a solution yourself.&lt;/p&gt;  &lt;p&gt;To help out developers and power users we’ve created another new tool called the &lt;b&gt;BCS Artifact Generator&lt;/b&gt; which will greatly help you get started building working solutions, which you can then customize however you’d like. &lt;/p&gt;  &lt;p&gt;To use the tool simply select your BDC Model (see Lionel Robinson’s post &lt;a href="http://blogs.msdn.com/bcs/archive/2010/01/28/bcs-team-channel-creating-an-external-content-type-in-sharepoint-designer-2010.aspx"&gt;Creating an External Content Type in SharePoint Designer 2010&lt;/a&gt; for help creating a BDC Model), give your solution a name, then follow the wizard which guides you through picking and choosing how your solution will look in Outlook. When you click “Generate” the tool will produce a folder containing all of the files necessary to run a BCS solution.&lt;/p&gt;  &lt;p&gt;You can then point the &lt;b&gt;Solution Packaging Tool&lt;/b&gt; at this folder to package and deploy your solution to Outlook, all in a matter of minutes.&lt;/p&gt;  &lt;p&gt;You can &lt;a href="http://code.msdn.microsoft.com/odcsps14bcsgnrtrtool"&gt;download the free Artifact Generator tool from MSDN Code Gallery&lt;/a&gt;.&lt;/p&gt;  &lt;p&gt;Also, be sure to &lt;a href="http://code.msdn.microsoft.com/odcsps14bcspkgtool"&gt;download the free Solution Packaging Tool, also from MSDN Code Gallery&lt;/a&gt;.&lt;/p&gt;  &lt;p&gt;&lt;a href="http://blogs.msdn.com/cfs-file.ashx/__key/CommunityServer-Blogs-Components-WeblogFiles/00-00-01-29-04-metablogapi/8032.clip_5F00_image002_5F00_1D14534C.jpg"&gt;&lt;img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="clip_image002" border="0" alt="clip_image002" src="http://blogs.msdn.com/cfs-file.ashx/__key/CommunityServer-Blogs-Components-WeblogFiles/00-00-01-29-04-metablogapi/4745.clip_5F00_image002_5F00_thumb_5F00_47ECB75E.jpg" width="544" height="427" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;h4&gt;Creating a Declarative Solution for Outlook&lt;/h4&gt;  &lt;p&gt;To create a declarative BCS solution in Outlook, you’ll do the following:&lt;/p&gt;  &lt;ol&gt;   &lt;li&gt;Create the necessary &lt;b&gt;solution artifacts&lt;/b&gt; (see below for details)&lt;/li&gt;    &lt;li&gt;Put the artifacts in a &lt;b&gt;folder&lt;/b&gt;&lt;/li&gt;    &lt;li&gt;Create a &lt;b&gt;BCS Package&lt;/b&gt; (a special type of VSTO ClickOnce package) using that folder - &lt;i&gt;Optional&lt;/i&gt;: put the BCS Package somewhere public (i.e. SharePoint) where your users can then go to deploy the solution&lt;/li&gt;    &lt;li&gt;&lt;b&gt;Deploy&lt;/b&gt; the solution package to Outlook&lt;/li&gt;    &lt;li&gt;You’re done!&lt;/li&gt; &lt;/ol&gt;  &lt;p&gt;Creating a BCS Package is done using the Solution Packaging Tool, which we’ve seen already. This post will examine the first step – creating the solution artifacts. We’ll show you how quickly and easily you can do this using the Artifact Generator tool.&lt;/p&gt;  &lt;h5&gt;What are the required artifacts?&lt;/h5&gt;  &lt;p&gt;To have a solution you’ll need the following three files at the very least:&lt;/p&gt;  &lt;ol&gt;   &lt;li&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/ee556378(office.14).aspx"&gt;BDC Model&lt;/a&gt;&lt;/li&gt;    &lt;li&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/ee819896(v=office.14).aspx"&gt;Solution Manifest (OIR.config file)&lt;/a&gt;&lt;/li&gt;    &lt;li&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/ee819875(v=office.14).aspx"&gt;Subscription(s)&lt;/a&gt;&lt;/li&gt; &lt;/ol&gt;  &lt;p&gt;Having these three artifacts will allow you to create and deploy a solution in Outlook. In addition, your solution can contain the following three customizations:&lt;/p&gt;  &lt;blockquote&gt;   &lt;p&gt;A) A custom item &lt;b&gt;Taskpane&lt;/b&gt; (item C in the screenshot below)&lt;/p&gt; &lt;/blockquote&gt;  &lt;blockquote&gt;   &lt;p&gt;B) A custom item &lt;b&gt;Form Region&lt;/b&gt; (item D in the screenshot below)&lt;/p&gt; &lt;/blockquote&gt;  &lt;blockquote&gt;   &lt;p&gt;C) A custom &lt;b&gt;ribbon&lt;/b&gt; containing item &lt;b&gt;action buttons&lt;/b&gt; (item B in the screenshot below)&lt;/p&gt; &lt;/blockquote&gt;  &lt;p&gt;The following screenshot shows a declarative solution and each of the three aforementioned customizations:&lt;/p&gt;  &lt;p&gt;&lt;a href="http://blogs.msdn.com/cfs-file.ashx/__key/CommunityServer-Blogs-Components-WeblogFiles/00-00-01-29-04-metablogapi/8623.clip_5F00_image004_5F00_35A3F09C.jpg"&gt;&lt;img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="clip_image004" border="0" alt="clip_image004" src="http://blogs.msdn.com/cfs-file.ashx/__key/CommunityServer-Blogs-Components-WeblogFiles/00-00-01-29-04-metablogapi/5482.clip_5F00_image004_5F00_thumb_5F00_074A6AEF.jpg" width="544" height="328" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;To add a &lt;a href="http://msdn.microsoft.com/en-us/library/ff394561(v=office.14).aspx"&gt;custom Taskpane&lt;/a&gt; to your solution you’ll need each of the following:&lt;/p&gt;  &lt;blockquote&gt;   &lt;p&gt;&lt;b&gt;a) &lt;/b&gt;&lt;b&gt;InfoPath Form [.xsn]&lt;/b&gt;&lt;/p&gt; &lt;/blockquote&gt;  &lt;blockquote&gt;   &lt;p&gt;b) Layout file [.xml]&lt;/p&gt; &lt;/blockquote&gt;  &lt;blockquote&gt;   &lt;p&gt;c) A few lines of XML added to the Solution Manifest&lt;/p&gt; &lt;/blockquote&gt;  &lt;p&gt;To add a &lt;a href="http://msdn.microsoft.com/en-us/library/ee819887(v=office.14).aspx"&gt;custom Form Region&lt;/a&gt; to your solution you’ll need each of the following:&lt;/p&gt;  &lt;blockquote&gt;   &lt;p&gt;&lt;b&gt;a) &lt;/b&gt;&lt;b&gt;Office Form Storage File [.ofs]&lt;/b&gt;&lt;/p&gt; &lt;/blockquote&gt;  &lt;blockquote&gt;   &lt;p&gt;b) Form Region Manifest [.xml]&lt;/p&gt; &lt;/blockquote&gt;  &lt;blockquote&gt;   &lt;p&gt;c) A few lines of XML added to the Solution Manifest&lt;/p&gt; &lt;/blockquote&gt;  &lt;p&gt;To add a &lt;a href="http://msdn.microsoft.com/en-us/library/ee819895(v=office.14).aspx"&gt;custom ribbon tab&lt;/a&gt; with action buttons to your solution you’ll need each of the following:&lt;/p&gt;  &lt;blockquote&gt;   &lt;p&gt;a) Ribbon definition file [.xml]&lt;/p&gt; &lt;/blockquote&gt;  &lt;blockquote&gt;   &lt;p&gt;b) A few lines of XML added to the Solution Manifest&lt;/p&gt; &lt;/blockquote&gt;  &lt;h4&gt;Using the Artifact Generator&lt;/h4&gt;  &lt;p&gt;You can now use the Artifact Generator to create most of these files automatically:&lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;Solution Manifest (including the additional lines needed for each customization)&lt;/li&gt;    &lt;li&gt;Subscription(s)&lt;/li&gt;    &lt;li&gt;Layout file&lt;/li&gt;    &lt;li&gt;Form Region Manifest&lt;/li&gt;    &lt;li&gt;Ribbon definition file&lt;/li&gt; &lt;/ul&gt;  &lt;p&gt;Before using the tool, be sure to create the following files if you’d like to include them for use:&lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;BDC Model&lt;/li&gt;    &lt;li&gt;[Optional] InfoPath form (to show item details in the taskpane)&lt;/li&gt;    &lt;li&gt;[Optional] Office Form Storage file (to customize the added form region)&lt;/li&gt; &lt;/ul&gt;  &lt;h5&gt;Steps to use the Artifact Generator&lt;/h5&gt;  &lt;ol&gt;   &lt;li&gt;Give your solution a name&lt;/li&gt;    &lt;li&gt;Import the BDC Model&lt;/li&gt;    &lt;li&gt;Click “Next”&lt;/li&gt;    &lt;li&gt;You can customize each of the External Content Types (ECT) that are mapped to Outlook item types by clicking “Customize” (see below for customization options):&lt;/li&gt;    &lt;/ol&gt;&lt;ol&gt;     &lt;li&gt;First, you can change the name that is displayed for that item.&lt;/li&gt;      &lt;li&gt;You can also change the icon that is displayed for that item.&lt;/li&gt;      &lt;li&gt;Click “Next”.&lt;/li&gt;      &lt;li&gt;For the ECT fields (i.e. “Product Serial Number”) that aren’t mapped to regular Outlook fields (like “First Name”, “Phone Number”, etc.), a form region will be automatically generated for your solution. You can also create and customize this region yourself by &lt;a href="http://msdn.microsoft.com/en-us/library/ee819887(v=office.14).aspx"&gt;creating an Office Form Storage file&lt;/a&gt; and selecting to use that file for this item.&lt;/li&gt;      &lt;li&gt;Click “Next”.&lt;/li&gt;      &lt;li&gt;If the External Content Type has an association (&lt;a href="http://msdn.microsoft.com/en-us/library/ee348594.aspx"&gt;in the BDC Model&lt;/a&gt;) you can show those associated items in a list on a taskpane (i.e. when you open a customer contact, it will show the orders that the customer has placed).&lt;/li&gt;      &lt;li&gt;You can also add an InfoPath form which will show the field details for each item you select in that list. First &lt;a href="http://msdn.microsoft.com/en-us/library/ee554886(v=office.14).aspx"&gt;create and customize the InfoPath form&lt;/a&gt; and select it for use in the wizard for this item.&lt;/li&gt;      &lt;li&gt;Click “Next”.&lt;/li&gt;      &lt;li&gt;To add a ribbon for the item which can have action buttons that perform custom actions for the item, click “Add a custom action” and then choose a name for the ribbon tab and for the ribbon group label where the button appears.&lt;/li&gt;      &lt;li&gt;By default the Artifact Generator will help you create one action button to start with. You can easily edit the Ribbon definition file later to add more buttons. This default button is a “URL Action” type of button, which opens up a URL in the browser based on a parameter value for that item. Enter a URL (be sure to add “{0}” in the URL where the value should go) and select a field to use as that parameter.&lt;/li&gt;      &lt;li&gt;Click “Finish”.&lt;/li&gt;   &lt;/ol&gt;    &lt;ul&gt;&lt;li&gt;Click “Generate artifacts”.&lt;/li&gt;    &lt;li&gt;A folder containing these newly generated artifacts will be created at the same location of the tool itself. The folder will also open up, displaying the artifacts.&lt;/li&gt;   &lt;/ul&gt;&lt;p&gt;Then, use the BCS Solution Packaging Tool to select this folder and create a new solution package to be used for installation and deployment of the solution. Be sure to select “Outlook Intermediate Declarative Solution” as the solution type.&lt;/p&gt;  &lt;p&gt;You should now have created an Intermediate Declarative Solution in Outlook!&lt;/p&gt;  &lt;h3&gt;Data Solution&lt;/h3&gt;  &lt;p&gt;If you’ve read my post &lt;a href="http://blogs.msdn.com/bcs/archive/2010/02/19/overview-of-bcs-advanced-code-based-solutions.aspx"&gt;Overview of BCS Advanced Code-Based Solutions&lt;/a&gt; or the MSDN article &lt;a href="http://msdn.microsoft.com/en-us/library/ff394635.aspx"&gt;Creating Advanced Code-Based Solutions Using Business Connectivity Services&lt;/a&gt; you’re aware that you can create Office Add-Ins using Visual Studio which can integrate with BCS and external data.&lt;/p&gt;  &lt;p&gt;These solutions need metadata and subscriptions on the machine running the solution, which dictate synchronization of the external data between the client and the external system. This metadata can be set up on that machine by having a user deploy a Simple Solution to &lt;a href="http://blogs.msdn.com/bcs/archive/2009/12/04/bcs-team-channel-external-lists-in-outlook.aspx"&gt;Outlook&lt;/a&gt; or &lt;a href="http://blogs.msdn.com/bcs/archive/2009/12/10/external-lists-in-sharepoint-workspace.aspx"&gt;SharePoint Workspace&lt;/a&gt;, but this requires additional steps that each user of your solution would have to perform initially.&lt;/p&gt;  &lt;p&gt;The ideal and recommended approach is to use a complementary Data Solution to go with your Office Add-In, which will set up the metadata and subscriptions on the user’s machine automatically.&lt;/p&gt;  &lt;p&gt;A Data Solution requires the following files:&lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;BDC Model&lt;/li&gt;    &lt;li&gt;Subscription(s)&lt;/li&gt; &lt;/ul&gt;  &lt;p&gt;Again, you can either &lt;a href="http://msdn.microsoft.com/en-us/library/ee819875(v=office.14).aspx"&gt;create the subscriptions by hand&lt;/a&gt; or use the Artifact Generator to create them for you. Simply import your BDC Model to the Artifact Generator and click “Generate artifacts”. Then, use the Solution Packaging Tool to point to that folder and create a BCS Package of type “Data Solution for Office Add-In”.&lt;/p&gt;  &lt;p&gt;If the user deploys this solution and then deploys your Office Add-In, your add-in will be able to display and manipulate external BCS data.&lt;/p&gt;  &lt;p&gt;To try this out for yourself, check out the following: &lt;a href="http://code.msdn.microsoft.com/odcspbcsexceladdin"&gt;Business Connectivity Services Excel 2010 Add-In&lt;/a&gt;.&lt;/p&gt;  &lt;p&gt;Thanks for reading, and enjoy the tool!&lt;/p&gt;  &lt;p&gt;Russell Palmer&lt;/p&gt;  &lt;p&gt;Program Manager&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10019757" width="1" height="1"&gt;</description></item><item><title>BCS Solutions in Outlook</title><link>http://blogs.msdn.com/b/bcs/archive/2010/06/04/bcs-solutions-in-outlook.aspx</link><pubDate>Fri, 04 Jun 2010 00:04:44 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10019743</guid><dc:creator>bcsbauth</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blogs.msdn.com/b/bcs/rsscomments.aspx?WeblogPostID=10019743</wfw:commentRss><comments>http://blogs.msdn.com/b/bcs/archive/2010/06/04/bcs-solutions-in-outlook.aspx#comments</comments><description>&lt;p&gt;If you’ve read Brad Stevenson’s post &lt;a href="http://blogs.msdn.com/bcs/archive/2009/11/12/types-of-solutions.aspx"&gt;Types of Solutions&lt;/a&gt; then you’re already familiar with the three types of BCS solutions:&lt;/p&gt;  &lt;ol&gt;   &lt;li&gt;Simple Out-Of-Box Solutions&lt;/li&gt;    &lt;li&gt;Intermediate Declarative Solutions&lt;/li&gt;    &lt;li&gt;Advanced Code-Based Solutions&lt;/li&gt; &lt;/ol&gt;  &lt;p&gt;This post will discuss the different types of BCS solutions possible in Outlook 2010.&lt;/p&gt;  &lt;p&gt;&lt;b&gt;Simple solutions&lt;/b&gt; can be created using out-of-box capabilities, by simply clicking the “Connect to Outlook” button in the ribbon of a SharePoint External List.&lt;/p&gt;  &lt;p&gt;&lt;a href="http://blogs.msdn.com/cfs-file.ashx/__key/CommunityServer-Blogs-Components-WeblogFiles/00-00-01-29-04-metablogapi/7827.clip_5F00_image002_5F00_33D1F6F5.jpg"&gt;&lt;img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="clip_image002" border="0" alt="clip_image002" src="http://blogs.msdn.com/cfs-file.ashx/__key/CommunityServer-Blogs-Components-WeblogFiles/00-00-01-29-04-metablogapi/7485.clip_5F00_image002_5F00_thumb_5F00_6BA43B18.jpg" width="524" height="156" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;At that point, a new folder will be displayed in Outlook. Clicking on the item type in that folder will display the external data items, previously seen in the External List, inside of Outlook either as a Contact, Post, Task or Appointment. See &lt;a href="http://blogs.msdn.com/bcs/archive/2009/12/04/bcs-team-channel-external-lists-in-outlook.aspx"&gt;External Lists in Outlook&lt;/a&gt; for an example.&lt;/p&gt;  &lt;p&gt;The fields that are unique to this External Content Type (i.e. “Customer ID Number”) that were not mapped to Outlook fields (such as First Name, Phone Number, Email, etc.) will be displayed in a standard auto-generated form region when opening up an item. All of the names and icons for the solution will be automatically selected.&lt;/p&gt;  &lt;p&gt;For developers that want to create a similar type of solution in Outlook, yet customize it to extend its capabilities and look more uniquely professional, an &lt;b&gt;intermediate declarative solution&lt;/b&gt; can be created for these needs. This will allow you to customize the:&lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;Number of External Content Types that appear in the solution folder in Outlook&lt;/li&gt;    &lt;li&gt;Solution names and icons used&lt;/li&gt;    &lt;li&gt;Taskpane, which displays related items for External Content Types with associations&lt;/li&gt;    &lt;li&gt;Ribbon, which contains custom action ribbon buttons&lt;/li&gt;    &lt;li&gt;Form region, used to show the unique fields&lt;/li&gt; &lt;/ul&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;In addition to these Simple and Intermediate solutions, developers can also create Advanced BCS solutions in Outlook with code, by creating an Outlook Office Add-In in Visual Studio 2010 and packaging it together with a BDC Model, subscriptions and a Solution Manifest in a BCS Solution Package.&lt;/p&gt;  &lt;p&gt;Let’s look a little closer at both the &lt;b&gt;Intermediate Declarative Solution&lt;/b&gt; and the &lt;b&gt;Advanced Code-Based Solution&lt;/b&gt;.&lt;/p&gt;  &lt;h3&gt;Intermediate Declarative Solution&lt;/h3&gt;  &lt;p&gt;To create an intermediate declarative solution:&lt;/p&gt;  &lt;ol&gt;   &lt;li&gt;Create the required artifacts (see table below for details)&lt;/li&gt;    &lt;li&gt;Put the artifacts in a folder&lt;/li&gt;    &lt;li&gt;Create a BCS Package (a unique kind of VSTO ClickOnce package) from that folder&lt;/li&gt;    &lt;li&gt;Deploy the solution to Outlook&lt;/li&gt;    &lt;li&gt;You’re done!&lt;/li&gt; &lt;/ol&gt;  &lt;p&gt;To create the required artifacts, you can either:&lt;/p&gt;  &lt;blockquote&gt;   &lt;p&gt;a) Create them automatically using the &lt;a href="http://code.msdn.microsoft.com/odcsps14bcsgnrtrtool"&gt;BCS Artifact Generator tool&lt;/a&gt;, or&lt;/p&gt; &lt;/blockquote&gt;  &lt;blockquote&gt;   &lt;p&gt;b) Create them by hand, following the guide &lt;a href="http://msdn.microsoft.com/en-us/library/ee819909(v=office.14).aspx"&gt;Creating Intermediate Declarative Outlook Solutions Using Business Connectivity Services&lt;/a&gt;&lt;/p&gt; &lt;/blockquote&gt;  &lt;p&gt;Be sure to check out the following resources as well:&lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/ee872309(v=office.14).aspx"&gt;Sample solution artifacts&lt;/a&gt;&lt;/li&gt;    &lt;li&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/ee872317(v=office.14).aspx"&gt;Solution artifact templates&lt;/a&gt;&lt;/li&gt; &lt;/ul&gt;  &lt;p&gt;To package the required artifacts, you can either:&lt;/p&gt;  &lt;blockquote&gt;   &lt;p&gt;a) Use the &lt;a href="http://code.msdn.microsoft.com/odcsps14bcspkgtool"&gt;BCS Solution Packaging Tool&lt;/a&gt; with type “Outlook Intermediate Declarative Solution”, or&lt;/p&gt; &lt;/blockquote&gt;  &lt;blockquote&gt;   &lt;p&gt;b) Use the server APIs to package manually&lt;/p&gt; &lt;/blockquote&gt;  &lt;p&gt;Here’s an example of what a custom intermediate declarative solution can look like in Outlook:&lt;/p&gt;  &lt;p&gt;&lt;a href="http://blogs.msdn.com/cfs-file.ashx/__key/CommunityServer-Blogs-Components-WeblogFiles/00-00-01-29-04-metablogapi/4377.clip_5F00_image004_5F00_6B380823.jpg"&gt;&lt;img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="clip_image004" border="0" alt="clip_image004" src="http://blogs.msdn.com/cfs-file.ashx/__key/CommunityServer-Blogs-Components-WeblogFiles/00-00-01-29-04-metablogapi/6428.clip_5F00_image004_5F00_thumb_5F00_51D004E9.jpg" width="544" height="328" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;The following table lists the required and optional artifacts:&lt;/p&gt;  &lt;table style="border-bottom: medium none; border-left: medium none; border-collapse: collapse; border-top: medium none; border-right: medium none; mso-border-top-alt: solid #4f81bd 1.0pt; mso-border-top-themecolor: accent1; mso-border-bottom-alt: solid #4f81bd 1.0pt; mso-border-bottom-themecolor: accent1; mso-yfti-tbllook: 1184; mso-padding-alt: 0in 5.4pt 0in 5.4pt" class="MsoTableLightShadingAccent1" border="1" cellspacing="0" cellpadding="0"&gt;&lt;tbody&gt;     &lt;tr style="height: 22pt; mso-yfti-irow: -1; mso-yfti-firstrow: yes"&gt;       &lt;td style="border-bottom: #4f81bd 1pt solid; border-left: medium none; padding-bottom: 0in; padding-left: 5.4pt; width: 143.55pt; padding-right: 5.4pt; height: 22pt; border-top: #4f81bd 1pt solid; border-right: medium none; padding-top: 0in; mso-border-top-themecolor: accent1; mso-border-bottom-themecolor: accent1" valign="top" width="191"&gt;         &lt;p style="line-height: normal; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; mso-yfti-cnfc: 5" class="MsoNormal"&gt;&lt;b&gt;&lt;span style="color: #1f497d; font-size: 10pt; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: &amp;#39;Times New Roman&amp;#39;; mso-bidi-font-family: &amp;#39;Times New Roman&amp;#39;; mso-themecolor: text2"&gt;Component               &lt;p&gt;&lt;/p&gt;             &lt;/span&gt;&lt;/b&gt;&lt;/p&gt;       &lt;/td&gt;        &lt;td style="border-bottom: #4f81bd 1pt solid; border-left: medium none; padding-bottom: 0in; padding-left: 5.4pt; width: 143.55pt; padding-right: 5.4pt; height: 22pt; border-top: #4f81bd 1pt solid; border-right: medium none; padding-top: 0in; mso-border-top-themecolor: accent1; mso-border-bottom-themecolor: accent1" valign="top" width="191"&gt;         &lt;p style="line-height: normal; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; mso-yfti-cnfc: 1" class="MsoNormal"&gt;&lt;b&gt;&lt;span style="color: #1f497d; font-size: 10pt; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: &amp;#39;Times New Roman&amp;#39;; mso-bidi-font-family: &amp;#39;Times New Roman&amp;#39;; mso-themecolor: text2"&gt;Artifact               &lt;p&gt;&lt;/p&gt;             &lt;/span&gt;&lt;/b&gt;&lt;/p&gt;       &lt;/td&gt;        &lt;td style="border-bottom: #4f81bd 1pt solid; border-left: medium none; padding-bottom: 0in; padding-left: 5.4pt; width: 152.8pt; padding-right: 5.4pt; height: 22pt; border-top: #4f81bd 1pt solid; border-right: medium none; padding-top: 0in; mso-border-top-themecolor: accent1; mso-border-bottom-themecolor: accent1" valign="top" width="204"&gt;         &lt;p style="line-height: normal; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; mso-yfti-cnfc: 1" class="MsoNormal"&gt;&lt;b&gt;&lt;span style="color: #1f497d; font-size: 10pt; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: &amp;#39;Times New Roman&amp;#39;; mso-bidi-font-family: &amp;#39;Times New Roman&amp;#39;; mso-themecolor: text2"&gt;Details               &lt;p&gt;&lt;/p&gt;             &lt;/span&gt;&lt;/b&gt;&lt;/p&gt;       &lt;/td&gt;     &lt;/tr&gt;      &lt;tr style="mso-yfti-irow: 0"&gt;       &lt;td style="border-bottom: medium none; border-left: medium none; padding-bottom: 0in; padding-left: 5.4pt; width: 143.55pt; padding-right: 5.4pt; background: #d3dfee; border-top: medium none; border-right: medium none; padding-top: 0in; mso-background-themecolor: accent1; mso-background-themetint: 63" valign="top" width="191"&gt;         &lt;p style="line-height: normal; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; mso-yfti-cnfc: 68" class="MsoNormal"&gt;&lt;b&gt;&lt;span style="color: #365f91; font-size: 10pt; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: &amp;#39;Times New Roman&amp;#39;; mso-bidi-font-family: &amp;#39;Times New Roman&amp;#39;; mso-themecolor: accent1; mso-themeshade: 191"&gt;BDC Model               &lt;p&gt;&lt;/p&gt;             &lt;/span&gt;&lt;/b&gt;&lt;/p&gt;       &lt;/td&gt;        &lt;td style="border-bottom: medium none; border-left: medium none; padding-bottom: 0in; padding-left: 5.4pt; width: 143.55pt; padding-right: 5.4pt; background: #d3dfee; border-top: medium none; border-right: medium none; padding-top: 0in; mso-background-themecolor: accent1; mso-background-themetint: 63" valign="top" width="191"&gt;         &lt;p style="line-height: normal; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; mso-yfti-cnfc: 64" class="MsoNormal"&gt;&lt;span style="color: #365f91; font-size: 10pt; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: &amp;#39;Times New Roman&amp;#39;; mso-bidi-font-family: &amp;#39;Times New Roman&amp;#39;; mso-themecolor: accent1; mso-themeshade: 191"&gt;Metadata.bdcm             &lt;p&gt;&lt;/p&gt;           &lt;/span&gt;&lt;/p&gt;       &lt;/td&gt;        &lt;td style="border-bottom: medium none; border-left: medium none; padding-bottom: 0in; padding-left: 5.4pt; width: 152.8pt; padding-right: 5.4pt; background: #d3dfee; border-top: medium none; border-right: medium none; padding-top: 0in; mso-background-themecolor: accent1; mso-background-themetint: 63" valign="top" width="204"&gt;         &lt;p style="line-height: normal; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; mso-yfti-cnfc: 64" class="MsoNormal"&gt;&lt;span style="color: #365f91; font-size: 10pt; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: &amp;#39;Times New Roman&amp;#39;; mso-bidi-font-family: &amp;#39;Times New Roman&amp;#39;; mso-themecolor: accent1; mso-themeshade: 191"&gt;Required; must have .bdcm file extension or be named exactly “metadata.xml”             &lt;p&gt;&lt;/p&gt;           &lt;/span&gt;&lt;/p&gt;       &lt;/td&gt;     &lt;/tr&gt;      &lt;tr style="mso-yfti-irow: 1"&gt;       &lt;td style="border-bottom: medium none; border-left: medium none; padding-bottom: 0in; padding-left: 5.4pt; width: 143.55pt; padding-right: 5.4pt; border-top: medium none; border-right: medium none; padding-top: 0in" valign="top" width="191"&gt;         &lt;p style="line-height: normal; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; mso-yfti-cnfc: 4" class="MsoNormal"&gt;&lt;b&gt;&lt;span style="color: #365f91; font-size: 10pt; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: &amp;#39;Times New Roman&amp;#39;; mso-bidi-font-family: &amp;#39;Times New Roman&amp;#39;; mso-themecolor: accent1; mso-themeshade: 191"&gt;Subscription file(s)               &lt;p&gt;&lt;/p&gt;             &lt;/span&gt;&lt;/b&gt;&lt;/p&gt;       &lt;/td&gt;        &lt;td style="border-bottom: medium none; border-left: medium none; padding-bottom: 0in; padding-left: 5.4pt; width: 143.55pt; padding-right: 5.4pt; border-top: medium none; border-right: medium none; padding-top: 0in" valign="top" width="191"&gt;         &lt;p style="line-height: normal; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto" class="MsoNormal"&gt;&lt;span style="color: #365f91; font-size: 10pt; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: &amp;#39;Times New Roman&amp;#39;; mso-bidi-font-family: &amp;#39;Times New Roman&amp;#39;; mso-themecolor: accent1; mso-themeshade: 191"&gt;*Subscription.xml             &lt;p&gt;&lt;/p&gt;           &lt;/span&gt;&lt;/p&gt;       &lt;/td&gt;        &lt;td style="border-bottom: medium none; border-left: medium none; padding-bottom: 0in; padding-left: 5.4pt; width: 152.8pt; padding-right: 5.4pt; border-top: medium none; border-right: medium none; padding-top: 0in" valign="top" width="204"&gt;         &lt;p style="line-height: normal; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto" class="MsoNormal"&gt;&lt;span style="color: #365f91; font-size: 10pt; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: &amp;#39;Times New Roman&amp;#39;; mso-bidi-font-family: &amp;#39;Times New Roman&amp;#39;; mso-themecolor: accent1; mso-themeshade: 191"&gt;Required, one for each External Content Type; must be named as *Subscription.xml (i.e. “myCustomerSubscription.xml”)             &lt;p&gt;&lt;/p&gt;           &lt;/span&gt;&lt;/p&gt;       &lt;/td&gt;     &lt;/tr&gt;      &lt;tr style="mso-yfti-irow: 2"&gt;       &lt;td style="border-bottom: medium none; border-left: medium none; padding-bottom: 0in; padding-left: 5.4pt; width: 143.55pt; padding-right: 5.4pt; background: #d3dfee; border-top: medium none; border-right: medium none; padding-top: 0in; mso-background-themecolor: accent1; mso-background-themetint: 63" valign="top" width="191"&gt;         &lt;p style="line-height: normal; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; mso-yfti-cnfc: 68" class="MsoNormal"&gt;&lt;b&gt;&lt;span style="color: #365f91; font-size: 10pt; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: &amp;#39;Times New Roman&amp;#39;; mso-bidi-font-family: &amp;#39;Times New Roman&amp;#39;; mso-themecolor: accent1; mso-themeshade: 191"&gt;Solution Manifest               &lt;p&gt;&lt;/p&gt;             &lt;/span&gt;&lt;/b&gt;&lt;/p&gt;       &lt;/td&gt;        &lt;td style="border-bottom: medium none; border-left: medium none; padding-bottom: 0in; padding-left: 5.4pt; width: 143.55pt; padding-right: 5.4pt; background: #d3dfee; border-top: medium none; border-right: medium none; padding-top: 0in; mso-background-themecolor: accent1; mso-background-themetint: 63" valign="top" width="191"&gt;         &lt;p style="line-height: normal; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; mso-yfti-cnfc: 64" class="MsoNormal"&gt;&lt;span style="color: #365f91; font-size: 10pt; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: &amp;#39;Times New Roman&amp;#39;; mso-bidi-font-family: &amp;#39;Times New Roman&amp;#39;; mso-themecolor: accent1; mso-themeshade: 191"&gt;OIR.config             &lt;p&gt;&lt;/p&gt;           &lt;/span&gt;&lt;/p&gt;       &lt;/td&gt;        &lt;td style="border-bottom: medium none; border-left: medium none; padding-bottom: 0in; padding-left: 5.4pt; width: 152.8pt; padding-right: 5.4pt; background: #d3dfee; border-top: medium none; border-right: medium none; padding-top: 0in; mso-background-themecolor: accent1; mso-background-themetint: 63" valign="top" width="204"&gt;         &lt;p style="line-height: normal; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; mso-yfti-cnfc: 64" class="MsoNormal"&gt;&lt;span style="color: #365f91; font-size: 10pt; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: &amp;#39;Times New Roman&amp;#39;; mso-bidi-font-family: &amp;#39;Times New Roman&amp;#39;; mso-themecolor: accent1; mso-themeshade: 191"&gt;Required; must be named OIR.config             &lt;p&gt;&lt;/p&gt;           &lt;/span&gt;&lt;/p&gt;       &lt;/td&gt;     &lt;/tr&gt;      &lt;tr style="mso-yfti-irow: 3"&gt;       &lt;td style="border-bottom: medium none; border-left: medium none; padding-bottom: 0in; padding-left: 5.4pt; width: 143.55pt; padding-right: 5.4pt; border-top: medium none; border-right: medium none; padding-top: 0in" valign="top" width="191"&gt;         &lt;p style="line-height: normal; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; mso-yfti-cnfc: 4" class="MsoNormal"&gt;&lt;b&gt;&lt;span style="color: #365f91; font-size: 10pt; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: &amp;#39;Times New Roman&amp;#39;; mso-bidi-font-family: &amp;#39;Times New Roman&amp;#39;; mso-themecolor: accent1; mso-themeshade: 191"&gt;OIR or layout resource file(s)               &lt;p&gt;&lt;/p&gt;             &lt;/span&gt;&lt;/b&gt;&lt;/p&gt;       &lt;/td&gt;        &lt;td style="border-bottom: medium none; border-left: medium none; padding-bottom: 0in; padding-left: 5.4pt; width: 143.55pt; padding-right: 5.4pt; border-top: medium none; border-right: medium none; padding-top: 0in" valign="top" width="191"&gt;         &lt;p style="line-height: normal; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto" class="MsoNormal"&gt;&lt;span style="color: #365f91; font-size: 10pt; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: &amp;#39;Times New Roman&amp;#39;; mso-bidi-font-family: &amp;#39;Times New Roman&amp;#39;; mso-themecolor: accent1; mso-themeshade: 191"&gt;*.resx             &lt;p&gt;&lt;/p&gt;           &lt;/span&gt;&lt;/p&gt;       &lt;/td&gt;        &lt;td style="border-bottom: medium none; border-left: medium none; padding-bottom: 0in; padding-left: 5.4pt; width: 152.8pt; padding-right: 5.4pt; border-top: medium none; border-right: medium none; padding-top: 0in" valign="top" width="204"&gt;         &lt;p style="line-height: normal; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto" class="MsoNormal"&gt;&lt;span style="color: #365f91; font-size: 10pt; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: &amp;#39;Times New Roman&amp;#39;; mso-bidi-font-family: &amp;#39;Times New Roman&amp;#39;; mso-themecolor: accent1; mso-themeshade: 191"&gt;Optional             &lt;p&gt;&lt;/p&gt;           &lt;/span&gt;&lt;/p&gt;       &lt;/td&gt;     &lt;/tr&gt;      &lt;tr style="mso-yfti-irow: 4"&gt;       &lt;td style="border-bottom: medium none; border-left: medium none; padding-bottom: 0in; padding-left: 5.4pt; width: 143.55pt; padding-right: 5.4pt; background: #d3dfee; border-top: medium none; border-right: medium none; padding-top: 0in; mso-background-themecolor: accent1; mso-background-themetint: 63" valign="top" width="191"&gt;         &lt;p style="line-height: normal; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; mso-yfti-cnfc: 68" class="MsoNormal"&gt;&lt;b&gt;&lt;span style="color: #365f91; font-size: 10pt; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: &amp;#39;Times New Roman&amp;#39;; mso-bidi-font-family: &amp;#39;Times New Roman&amp;#39;; mso-themecolor: accent1; mso-themeshade: 191"&gt;Outlook ribbon file(s)               &lt;p&gt;&lt;/p&gt;             &lt;/span&gt;&lt;/b&gt;&lt;/p&gt;       &lt;/td&gt;        &lt;td style="border-bottom: medium none; border-left: medium none; padding-bottom: 0in; padding-left: 5.4pt; width: 143.55pt; padding-right: 5.4pt; background: #d3dfee; border-top: medium none; border-right: medium none; padding-top: 0in; mso-background-themecolor: accent1; mso-background-themetint: 63" valign="top" width="191"&gt;         &lt;p style="line-height: normal; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; mso-yfti-cnfc: 64" class="MsoNormal"&gt;&lt;span style="color: #365f91; font-size: 10pt; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: &amp;#39;Times New Roman&amp;#39;; mso-bidi-font-family: &amp;#39;Times New Roman&amp;#39;; mso-themecolor: accent1; mso-themeshade: 191"&gt;*.xml             &lt;p&gt;&lt;/p&gt;           &lt;/span&gt;&lt;/p&gt;       &lt;/td&gt;        &lt;td style="border-bottom: medium none; border-left: medium none; padding-bottom: 0in; padding-left: 5.4pt; width: 152.8pt; padding-right: 5.4pt; background: #d3dfee; border-top: medium none; border-right: medium none; padding-top: 0in; mso-background-themecolor: accent1; mso-background-themetint: 63" valign="top" width="204"&gt;         &lt;p style="line-height: normal; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; mso-yfti-cnfc: 64" class="MsoNormal"&gt;&lt;span style="color: #365f91; font-size: 10pt; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: &amp;#39;Times New Roman&amp;#39;; mso-bidi-font-family: &amp;#39;Times New Roman&amp;#39;; mso-themecolor: accent1; mso-themeshade: 191"&gt;Optional             &lt;p&gt;&lt;/p&gt;           &lt;/span&gt;&lt;/p&gt;       &lt;/td&gt;     &lt;/tr&gt;      &lt;tr style="mso-yfti-irow: 5"&gt;       &lt;td style="border-bottom: medium none; border-left: medium none; padding-bottom: 0in; padding-left: 5.4pt; width: 143.55pt; padding-right: 5.4pt; border-top: medium none; border-right: medium none; padding-top: 0in" valign="top" width="191"&gt;         &lt;p style="line-height: normal; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; mso-yfti-cnfc: 4" class="MsoNormal"&gt;&lt;b&gt;&lt;span style="color: #365f91; font-size: 10pt; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: &amp;#39;Times New Roman&amp;#39;; mso-bidi-font-family: &amp;#39;Times New Roman&amp;#39;; mso-themecolor: accent1; mso-themeshade: 191"&gt;Layout file(s)               &lt;p&gt;&lt;/p&gt;             &lt;/span&gt;&lt;/b&gt;&lt;/p&gt;       &lt;/td&gt;        &lt;td style="border-bottom: medium none; border-left: medium none; padding-bottom: 0in; padding-left: 5.4pt; width: 143.55pt; padding-right: 5.4pt; border-top: medium none; border-right: medium none; padding-top: 0in" valign="top" width="191"&gt;         &lt;p style="line-height: normal; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto" class="MsoNormal"&gt;&lt;span style="color: #365f91; font-size: 10pt; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: &amp;#39;Times New Roman&amp;#39;; mso-bidi-font-family: &amp;#39;Times New Roman&amp;#39;; mso-themecolor: accent1; mso-themeshade: 191"&gt;*.xml             &lt;p&gt;&lt;/p&gt;           &lt;/span&gt;&lt;/p&gt;       &lt;/td&gt;        &lt;td style="border-bottom: medium none; border-left: medium none; padding-bottom: 0in; padding-left: 5.4pt; width: 152.8pt; padding-right: 5.4pt; border-top: medium none; border-right: medium none; padding-top: 0in" valign="top" width="204"&gt;         &lt;p style="line-height: normal; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto" class="MsoNormal"&gt;&lt;span style="color: #365f91; font-size: 10pt; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: &amp;#39;Times New Roman&amp;#39;; mso-bidi-font-family: &amp;#39;Times New Roman&amp;#39;; mso-themecolor: accent1; mso-themeshade: 191"&gt;Optional             &lt;p&gt;&lt;/p&gt;           &lt;/span&gt;&lt;/p&gt;       &lt;/td&gt;     &lt;/tr&gt;      &lt;tr style="mso-yfti-irow: 6"&gt;       &lt;td style="border-bottom: medium none; border-left: medium none; padding-bottom: 0in; padding-left: 5.4pt; width: 143.55pt; padding-right: 5.4pt; background: #d3dfee; border-top: medium none; border-right: medium none; padding-top: 0in; mso-background-themecolor: accent1; mso-background-themetint: 63" valign="top" width="191"&gt;         &lt;p style="line-height: normal; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; mso-yfti-cnfc: 68" class="MsoNormal"&gt;&lt;b&gt;&lt;span style="color: #365f91; font-size: 10pt; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: &amp;#39;Times New Roman&amp;#39;; mso-bidi-font-family: &amp;#39;Times New Roman&amp;#39;; mso-themecolor: accent1; mso-themeshade: 191"&gt;InfoPath form(s)               &lt;p&gt;&lt;/p&gt;             &lt;/span&gt;&lt;/b&gt;&lt;/p&gt;       &lt;/td&gt;        &lt;td style="border-bottom: medium none; border-left: medium none; padding-bottom: 0in; padding-left: 5.4pt; width: 143.55pt; padding-right: 5.4pt; background: #d3dfee; border-top: medium none; border-right: medium none; padding-top: 0in; mso-background-themecolor: accent1; mso-background-themetint: 63" valign="top" width="191"&gt;         &lt;p style="line-height: normal; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; mso-yfti-cnfc: 64" class="MsoNormal"&gt;&lt;span style="color: #365f91; font-size: 10pt; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: &amp;#39;Times New Roman&amp;#39;; mso-bidi-font-family: &amp;#39;Times New Roman&amp;#39;; mso-themecolor: accent1; mso-themeshade: 191"&gt;*.xsn             &lt;p&gt;&lt;/p&gt;           &lt;/span&gt;&lt;/p&gt;       &lt;/td&gt;        &lt;td style="border-bottom: medium none; border-left: medium none; padding-bottom: 0in; padding-left: 5.4pt; width: 152.8pt; padding-right: 5.4pt; background: #d3dfee; border-top: medium none; border-right: medium none; padding-top: 0in; mso-background-themecolor: accent1; mso-background-themetint: 63" valign="top" width="204"&gt;         &lt;p style="line-height: normal; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; mso-yfti-cnfc: 64" class="MsoNormal"&gt;&lt;span style="color: #365f91; font-size: 10pt; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: &amp;#39;Times New Roman&amp;#39;; mso-bidi-font-family: &amp;#39;Times New Roman&amp;#39;; mso-themecolor: accent1; mso-themeshade: 191"&gt;Optional             &lt;p&gt;&lt;/p&gt;           &lt;/span&gt;&lt;/p&gt;       &lt;/td&gt;     &lt;/tr&gt;      &lt;tr style="mso-yfti-irow: 7"&gt;       &lt;td style="border-bottom: medium none; border-left: medium none; padding-bottom: 0in; padding-left: 5.4pt; width: 143.55pt; padding-right: 5.4pt; border-top: medium none; border-right: medium none; padding-top: 0in" valign="top" width="191"&gt;         &lt;p style="line-height: normal; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; mso-yfti-cnfc: 4" class="MsoNormal"&gt;&lt;b&gt;&lt;span style="color: #365f91; font-size: 10pt; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: &amp;#39;Times New Roman&amp;#39;; mso-bidi-font-family: &amp;#39;Times New Roman&amp;#39;; mso-themecolor: accent1; mso-themeshade: 191"&gt;Outlook form region(s)               &lt;p&gt;&lt;/p&gt;             &lt;/span&gt;&lt;/b&gt;&lt;/p&gt;       &lt;/td&gt;        &lt;td style="border-bottom: medium none; border-left: medium none; padding-bottom: 0in; padding-left: 5.4pt; width: 143.55pt; padding-right: 5.4pt; border-top: medium none; border-right: medium none; padding-top: 0in" valign="top" width="191"&gt;         &lt;p style="line-height: normal; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto" class="MsoNormal"&gt;&lt;span style="color: #365f91; font-size: 10pt; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: &amp;#39;Times New Roman&amp;#39;; mso-bidi-font-family: &amp;#39;Times New Roman&amp;#39;; mso-themecolor: accent1; mso-themeshade: 191"&gt;*.ofs             &lt;p&gt;&lt;/p&gt;           &lt;/span&gt;&lt;/p&gt;       &lt;/td&gt;        &lt;td style="border-bottom: medium none; border-left: medium none; padding-bottom: 0in; padding-left: 5.4pt; width: 152.8pt; padding-right: 5.4pt; border-top: medium none; border-right: medium none; padding-top: 0in" valign="top" width="204"&gt;         &lt;p style="line-height: normal; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto" class="MsoNormal"&gt;&lt;span style="color: #365f91; font-size: 10pt; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: &amp;#39;Times New Roman&amp;#39;; mso-bidi-font-family: &amp;#39;Times New Roman&amp;#39;; mso-themecolor: accent1; mso-themeshade: 191"&gt;Optional             &lt;p&gt;&lt;/p&gt;           &lt;/span&gt;&lt;/p&gt;       &lt;/td&gt;     &lt;/tr&gt;      &lt;tr style="mso-yfti-irow: 8"&gt;       &lt;td style="border-bottom: medium none; border-left: medium none; padding-bottom: 0in; padding-left: 5.4pt; width: 143.55pt; padding-right: 5.4pt; background: #d3dfee; border-top: medium none; border-right: medium none; padding-top: 0in; mso-background-themecolor: accent1; mso-background-themetint: 63" valign="top" width="191"&gt;         &lt;p style="line-height: normal; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; mso-yfti-cnfc: 68" class="MsoNormal"&gt;&lt;b&gt;&lt;span style="color: #365f91; font-size: 10pt; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: &amp;#39;Times New Roman&amp;#39;; mso-bidi-font-family: &amp;#39;Times New Roman&amp;#39;; mso-themecolor: accent1; mso-themeshade: 191"&gt;Form region manifest file(s)               &lt;p&gt;&lt;/p&gt;             &lt;/span&gt;&lt;/b&gt;&lt;/p&gt;       &lt;/td&gt;        &lt;td style="border-bottom: medium none; border-left: medium none; padding-bottom: 0in; padding-left: 5.4pt; width: 143.55pt; padding-right: 5.4pt; background: #d3dfee; border-top: medium none; border-right: medium none; padding-top: 0in; mso-background-themecolor: accent1; mso-background-themetint: 63" valign="top" width="191"&gt;         &lt;p style="line-height: normal; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; mso-yfti-cnfc: 64" class="MsoNormal"&gt;&lt;span style="color: #365f91; font-size: 10pt; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: &amp;#39;Times New Roman&amp;#39;; mso-bidi-font-family: &amp;#39;Times New Roman&amp;#39;; mso-themecolor: accent1; mso-themeshade: 191"&gt;*.xml             &lt;p&gt;&lt;/p&gt;           &lt;/span&gt;&lt;/p&gt;       &lt;/td&gt;        &lt;td style="border-bottom: medium none; border-left: medium none; padding-bottom: 0in; padding-left: 5.4pt; width: 152.8pt; padding-right: 5.4pt; background: #d3dfee; border-top: medium none; border-right: medium none; padding-top: 0in; mso-background-themecolor: accent1; mso-background-themetint: 63" valign="top" width="204"&gt;         &lt;p style="line-height: normal; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; mso-yfti-cnfc: 64" class="MsoNormal"&gt;&lt;span style="color: #365f91; font-size: 10pt; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: &amp;#39;Times New Roman&amp;#39;; mso-bidi-font-family: &amp;#39;Times New Roman&amp;#39;; mso-themecolor: accent1; mso-themeshade: 191"&gt;Optional             &lt;p&gt;&lt;/p&gt;           &lt;/span&gt;&lt;/p&gt;       &lt;/td&gt;     &lt;/tr&gt;      &lt;tr style="mso-yfti-irow: 9"&gt;       &lt;td style="border-bottom: medium none; border-left: medium none; padding-bottom: 0in; padding-left: 5.4pt; width: 143.55pt; padding-right: 5.4pt; border-top: medium none; border-right: medium none; padding-top: 0in" valign="top" width="191"&gt;         &lt;p style="line-height: normal; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; mso-yfti-cnfc: 4" class="MsoNormal"&gt;&lt;b&gt;&lt;span style="color: #365f91; font-size: 10pt; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: &amp;#39;Times New Roman&amp;#39;; mso-bidi-font-family: &amp;#39;Times New Roman&amp;#39;; mso-themecolor: accent1; mso-themeshade: 191"&gt;Custom Ribbon Manger, Custom Action and Custom OBPart assembly               &lt;p&gt;&lt;/p&gt;             &lt;/span&gt;&lt;/b&gt;&lt;/p&gt;       &lt;/td&gt;        &lt;td style="border-bottom: medium none; border-left: medium none; padding-bottom: 0in; padding-left: 5.4pt; width: 143.55pt; padding-right: 5.4pt; border-top: medium none; border-right: medium none; padding-top: 0in" valign="top" width="191"&gt;         &lt;p style="line-height: normal; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto" class="MsoNormal"&gt;&lt;span style="color: #365f91; font-size: 10pt; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: &amp;#39;Times New Roman&amp;#39;; mso-bidi-font-family: &amp;#39;Times New Roman&amp;#39;; mso-themecolor: accent1; mso-themeshade: 191"&gt;*.dll             &lt;p&gt;&lt;/p&gt;           &lt;/span&gt;&lt;/p&gt;       &lt;/td&gt;        &lt;td style="border-bottom: medium none; border-left: medium none; padding-bottom: 0in; padding-left: 5.4pt; width: 152.8pt; padding-right: 5.4pt; border-top: medium none; border-right: medium none; padding-top: 0in" valign="top" width="204"&gt;         &lt;p style="line-height: normal; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto" class="MsoNormal"&gt;&lt;span style="color: #365f91; font-size: 10pt; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: &amp;#39;Times New Roman&amp;#39;; mso-bidi-font-family: &amp;#39;Times New Roman&amp;#39;; mso-themecolor: accent1; mso-themeshade: 191"&gt;Optional             &lt;p&gt;&lt;/p&gt;           &lt;/span&gt;&lt;/p&gt;       &lt;/td&gt;     &lt;/tr&gt;      &lt;tr style="mso-yfti-irow: 10"&gt;       &lt;td style="border-bottom: medium none; border-left: medium none; padding-bottom: 0in; padding-left: 5.4pt; width: 143.55pt; padding-right: 5.4pt; background: #d3dfee; border-top: medium none; border-right: medium none; padding-top: 0in; mso-background-themecolor: accent1; mso-background-themetint: 63" valign="top" width="191"&gt;         &lt;p style="line-height: normal; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; mso-yfti-cnfc: 68" class="MsoNormal"&gt;&lt;b&gt;&lt;span style="color: #365f91; font-size: 10pt; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: &amp;#39;Times New Roman&amp;#39;; mso-bidi-font-family: &amp;#39;Times New Roman&amp;#39;; mso-themecolor: accent1; mso-themeshade: 191"&gt;Outlook view definition(s)               &lt;p&gt;&lt;/p&gt;             &lt;/span&gt;&lt;/b&gt;&lt;/p&gt;       &lt;/td&gt;        &lt;td style="border-bottom: medium none; border-left: medium none; padding-bottom: 0in; padding-left: 5.4pt; width: 143.55pt; padding-right: 5.4pt; background: #d3dfee; border-top: medium none; border-right: medium none; padding-top: 0in; mso-background-themecolor: accent1; mso-background-themetint: 63" valign="top" width="191"&gt;         &lt;p style="line-height: normal; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; mso-yfti-cnfc: 64" class="MsoNormal"&gt;&lt;span style="color: #365f91; font-size: 10pt; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: &amp;#39;Times New Roman&amp;#39;; mso-bidi-font-family: &amp;#39;Times New Roman&amp;#39;; mso-themecolor: accent1; mso-themeshade: 191"&gt;*.ovd             &lt;p&gt;&lt;/p&gt;           &lt;/span&gt;&lt;/p&gt;       &lt;/td&gt;        &lt;td style="border-bottom: medium none; border-left: medium none; padding-bottom: 0in; padding-left: 5.4pt; width: 152.8pt; padding-right: 5.4pt; background: #d3dfee; border-top: medium none; border-right: medium none; padding-top: 0in; mso-background-themecolor: accent1; mso-background-themetint: 63" valign="top" width="204"&gt;         &lt;p style="line-height: normal; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; mso-yfti-cnfc: 64" class="MsoNormal"&gt;&lt;span style="color: #365f91; font-size: 10pt; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: &amp;#39;Times New Roman&amp;#39;; mso-bidi-font-family: &amp;#39;Times New Roman&amp;#39;; mso-themecolor: accent1; mso-themeshade: 191"&gt;Optional             &lt;p&gt;&lt;/p&gt;           &lt;/span&gt;&lt;/p&gt;       &lt;/td&gt;     &lt;/tr&gt;      &lt;tr style="mso-yfti-irow: 11; mso-yfti-lastrow: yes"&gt;       &lt;td style="border-bottom: #4f81bd 1pt solid; border-left: medium none; padding-bottom: 0in; padding-left: 5.4pt; width: 143.55pt; padding-right: 5.4pt; border-top: medium none; border-right: medium none; padding-top: 0in; mso-border-bottom-themecolor: accent1" valign="top" width="191"&gt;         &lt;p style="line-height: normal; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; mso-yfti-cnfc: 4" class="MsoNormal"&gt;&lt;b&gt;&lt;span style="color: #365f91; font-size: 10pt; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: &amp;#39;Times New Roman&amp;#39;; mso-bidi-font-family: &amp;#39;Times New Roman&amp;#39;; mso-themecolor: accent1; mso-themeshade: 191"&gt;Icon(s)               &lt;p&gt;&lt;/p&gt;             &lt;/span&gt;&lt;/b&gt;&lt;/p&gt;       &lt;/td&gt;        &lt;td style="border-bottom: #4f81bd 1pt solid; border-left: medium none; padding-bottom: 0in; padding-left: 5.4pt; width: 143.55pt; padding-right: 5.4pt; border-top: medium none; border-right: medium none; padding-top: 0in; mso-border-bottom-themecolor: accent1" valign="top" width="191"&gt;         &lt;p style="line-height: normal; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto" class="MsoNormal"&gt;&lt;span style="color: #365f91; font-size: 10pt; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: &amp;#39;Times New Roman&amp;#39;; mso-bidi-font-family: &amp;#39;Times New Roman&amp;#39;; mso-themecolor: accent1; mso-themeshade: 191"&gt;*.ico, *.jpg, *.png             &lt;p&gt;&lt;/p&gt;           &lt;/span&gt;&lt;/p&gt;       &lt;/td&gt;        &lt;td style="border-bottom: #4f81bd 1pt solid; border-left: medium none; padding-bottom: 0in; padding-left: 5.4pt; width: 152.8pt; padding-right: 5.4pt; border-top: medium none; border-right: medium none; padding-top: 0in; mso-border-bottom-themecolor: accent1" valign="top" width="204"&gt;         &lt;p style="line-height: normal; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto" class="MsoNormal"&gt;&lt;span style="color: #365f91; font-size: 10pt; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: &amp;#39;Times New Roman&amp;#39;; mso-bidi-font-family: &amp;#39;Times New Roman&amp;#39;; mso-themecolor: accent1; mso-themeshade: 191"&gt;Optional             &lt;p&gt;&lt;/p&gt;           &lt;/span&gt;&lt;/p&gt;       &lt;/td&gt;     &lt;/tr&gt;   &lt;/tbody&gt;&lt;/table&gt;  &lt;h3&gt;Advanced Code-Based Solution&lt;/h3&gt;  &lt;p&gt;To create an advanced code-based solution:&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;ol&gt;   &lt;li&gt;Create the required artifacts (see table below for details)&lt;/li&gt;    &lt;li&gt;Create an Outlook Office 2010 Add-In using Visual Studio 2010&lt;/li&gt;    &lt;li&gt;Put the artifacts and Add-In DLL in a folder&lt;/li&gt;    &lt;li&gt;Create a BCS Package (a unique kind of VSTO ClickOnce package) from that folder&lt;/li&gt;    &lt;li&gt;Deploy the solution to Outlook&lt;/li&gt;    &lt;li&gt;You’re done!&lt;/li&gt; &lt;/ol&gt;  &lt;p&gt;To create the required artifacts, you can either:&lt;/p&gt;  &lt;blockquote&gt;   &lt;p&gt;a) Create them automatically using the &lt;a href="http://code.msdn.microsoft.com/odcsps14bcsgnrtrtool"&gt;BCS Artifact Generator tool&lt;/a&gt;, or&lt;/p&gt; &lt;/blockquote&gt;  &lt;blockquote&gt;   &lt;p&gt;b) Create them by hand&lt;/p&gt; &lt;/blockquote&gt;  &lt;p&gt;To package the required artifacts, you can either:&lt;/p&gt;  &lt;blockquote&gt;   &lt;p&gt;a) Use the &lt;a href="http://code.msdn.microsoft.com/odcsps14bcspkgtool"&gt;BCS Solution Packaging Tool&lt;/a&gt; with type “Outlook Advanced Code-Based Solution (OIR)”, or&lt;/p&gt; &lt;/blockquote&gt;  &lt;blockquote&gt;   &lt;p&gt;b) Use the server APIs to package manually&lt;/p&gt; &lt;/blockquote&gt;  &lt;h4&gt;&lt;/h4&gt;  &lt;p&gt;The following table lists the required and optional artifacts:&lt;/p&gt;  &lt;table style="border-bottom: medium none; border-left: medium none; border-collapse: collapse; border-top: medium none; border-right: medium none; mso-border-top-alt: solid #4f81bd 1.0pt; mso-border-top-themecolor: accent1; mso-border-bottom-alt: solid #4f81bd 1.0pt; mso-border-bottom-themecolor: accent1; mso-yfti-tbllook: 1184; mso-padding-alt: 0in 5.4pt 0in 5.4pt" class="MsoTableLightShadingAccent1" border="1" cellspacing="0" cellpadding="0"&gt;&lt;tbody&gt;     &lt;tr style="height: 22pt; mso-yfti-irow: -1; mso-yfti-firstrow: yes"&gt;       &lt;td style="border-bottom: #4f81bd 1pt solid; border-left: medium none; padding-bottom: 0in; padding-left: 5.4pt; width: 143.55pt; padding-right: 5.4pt; height: 22pt; border-top: #4f81bd 1pt solid; border-right: medium none; padding-top: 0in; mso-border-top-themecolor: accent1; mso-border-bottom-themecolor: accent1" valign="top" width="191"&gt;         &lt;p style="line-height: normal; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; mso-yfti-cnfc: 5" class="MsoNormal"&gt;&lt;b&gt;&lt;span style="color: #1f497d; font-size: 10pt; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: &amp;#39;Times New Roman&amp;#39;; mso-bidi-font-family: &amp;#39;Times New Roman&amp;#39;; mso-themecolor: text2"&gt;Component               &lt;p&gt;&lt;/p&gt;             &lt;/span&gt;&lt;/b&gt;&lt;/p&gt;       &lt;/td&gt;        &lt;td style="border-bottom: #4f81bd 1pt solid; border-left: medium none; padding-bottom: 0in; padding-left: 5.4pt; width: 143.55pt; padding-right: 5.4pt; height: 22pt; border-top: #4f81bd 1pt solid; border-right: medium none; padding-top: 0in; mso-border-top-themecolor: accent1; mso-border-bottom-themecolor: accent1" valign="top" width="191"&gt;         &lt;p style="line-height: normal; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; mso-yfti-cnfc: 1" class="MsoNormal"&gt;&lt;b&gt;&lt;span style="color: #1f497d; font-size: 10pt; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: &amp;#39;Times New Roman&amp;#39;; mso-bidi-font-family: &amp;#39;Times New Roman&amp;#39;; mso-themecolor: text2"&gt;Artifact                &lt;p&gt;&lt;/p&gt;             &lt;/span&gt;&lt;/b&gt;&lt;/p&gt;       &lt;/td&gt;        &lt;td style="border-bottom: #4f81bd 1pt solid; border-left: medium none; padding-bottom: 0in; padding-left: 5.4pt; width: 152.8pt; padding-right: 5.4pt; height: 22pt; border-top: #4f81bd 1pt solid; border-right: medium none; padding-top: 0in; mso-border-top-themecolor: accent1; mso-border-bottom-themecolor: accent1" valign="top" width="204"&gt;         &lt;p style="line-height: normal; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; mso-yfti-cnfc: 1" class="MsoNormal"&gt;&lt;b&gt;&lt;span style="color: #1f497d; font-size: 10pt; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: &amp;#39;Times New Roman&amp;#39;; mso-bidi-font-family: &amp;#39;Times New Roman&amp;#39;; mso-themecolor: text2"&gt;Details                &lt;p&gt;&lt;/p&gt;             &lt;/span&gt;&lt;/b&gt;&lt;/p&gt;       &lt;/td&gt;     &lt;/tr&gt;      &lt;tr style="mso-yfti-irow: 0"&gt;       &lt;td style="border-bottom: medium none; border-left: medium none; padding-bottom: 0in; padding-left: 5.4pt; width: 143.55pt; padding-right: 5.4pt; background: #d3dfee; border-top: medium none; border-right: medium none; padding-top: 0in; mso-background-themecolor: accent1; mso-background-themetint: 63" valign="top" width="191"&gt;         &lt;p style="line-height: normal; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; mso-yfti-cnfc: 68" class="MsoNormal"&gt;&lt;b&gt;&lt;span style="color: #365f91; font-size: 10pt; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: &amp;#39;Times New Roman&amp;#39;; mso-bidi-font-family: &amp;#39;Times New Roman&amp;#39;; mso-themecolor: accent1; mso-themeshade: 191"&gt;BDC Model               &lt;p&gt;&lt;/p&gt;             &lt;/span&gt;&lt;/b&gt;&lt;/p&gt;       &lt;/td&gt;        &lt;td style="border-bottom: medium none; border-left: medium none; padding-bottom: 0in; padding-left: 5.4pt; width: 143.55pt; padding-right: 5.4pt; background: #d3dfee; border-top: medium none; border-right: medium none; padding-top: 0in; mso-background-themecolor: accent1; mso-background-themetint: 63" valign="top" width="191"&gt;         &lt;p style="line-height: normal; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; mso-yfti-cnfc: 64" class="MsoNormal"&gt;&lt;span style="color: #365f91; font-size: 10pt; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: &amp;#39;Times New Roman&amp;#39;; mso-bidi-font-family: &amp;#39;Times New Roman&amp;#39;; mso-themecolor: accent1; mso-themeshade: 191"&gt;Metadata.bdcm             &lt;p&gt;&lt;/p&gt;           &lt;/span&gt;&lt;/p&gt;       &lt;/td&gt;        &lt;td style="border-bottom: medium none; border-left: medium none; padding-bottom: 0in; padding-left: 5.4pt; width: 152.8pt; padding-right: 5.4pt; background: #d3dfee; border-top: medium none; border-right: medium none; padding-top: 0in; mso-background-themecolor: accent1; mso-background-themetint: 63" valign="top" width="204"&gt;         &lt;p style="line-height: normal; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; mso-yfti-cnfc: 64" class="MsoNormal"&gt;&lt;span style="color: #365f91; font-size: 10pt; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: &amp;#39;Times New Roman&amp;#39;; mso-bidi-font-family: &amp;#39;Times New Roman&amp;#39;; mso-themecolor: accent1; mso-themeshade: 191"&gt;Required; must have .bdcm file extension or be named exactly “metadata.xml”             &lt;p&gt;&lt;/p&gt;           &lt;/span&gt;&lt;/p&gt;       &lt;/td&gt;     &lt;/tr&gt;      &lt;tr style="mso-yfti-irow: 1"&gt;       &lt;td style="border-bottom: medium none; border-left: medium none; padding-bottom: 0in; padding-left: 5.4pt; width: 143.55pt; padding-right: 5.4pt; border-top: medium none; border-right: medium none; padding-top: 0in" valign="top" width="191"&gt;         &lt;p style="line-height: normal; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; mso-yfti-cnfc: 4" class="MsoNormal"&gt;&lt;b&gt;&lt;span style="color: #365f91; font-size: 10pt; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: &amp;#39;Times New Roman&amp;#39;; mso-bidi-font-family: &amp;#39;Times New Roman&amp;#39;; mso-themecolor: accent1; mso-themeshade: 191"&gt;Subscription file(s)               &lt;p&gt;&lt;/p&gt;             &lt;/span&gt;&lt;/b&gt;&lt;/p&gt;       &lt;/td&gt;        &lt;td style="border-bottom: medium none; border-left: medium none; padding-bottom: 0in; padding-left: 5.4pt; width: 143.55pt; padding-right: 5.4pt; border-top: medium none; border-right: medium none; padding-top: 0in" valign="top" width="191"&gt;         &lt;p style="line-height: normal; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto" class="MsoNormal"&gt;&lt;span style="color: #365f91; font-size: 10pt; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: &amp;#39;Times New Roman&amp;#39;; mso-bidi-font-family: &amp;#39;Times New Roman&amp;#39;; mso-themecolor: accent1; mso-themeshade: 191"&gt;*Subscription.xml             &lt;p&gt;&lt;/p&gt;           &lt;/span&gt;&lt;/p&gt;       &lt;/td&gt;        &lt;td style="border-bottom: medium none; border-left: medium none; padding-bottom: 0in; padding-left: 5.4pt; width: 152.8pt; padding-right: 5.4pt; border-top: medium none; border-right: medium none; padding-top: 0in" valign="top" width="204"&gt;         &lt;p style="line-height: normal; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto" class="MsoNormal"&gt;&lt;span style="color: #365f91; font-size: 10pt; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: &amp;#39;Times New Roman&amp;#39;; mso-bidi-font-family: &amp;#39;Times New Roman&amp;#39;; mso-themecolor: accent1; mso-themeshade: 191"&gt;Required, one for each External Content Type; must be named as *Subscription.xml (i.e. “myCustomerSubscription.xml”)             &lt;p&gt;&lt;/p&gt;           &lt;/span&gt;&lt;/p&gt;       &lt;/td&gt;     &lt;/tr&gt;      &lt;tr style="mso-yfti-irow: 2"&gt;       &lt;td style="border-bottom: medium none; border-left: medium none; padding-bottom: 0in; padding-left: 5.4pt; width: 143.55pt; padding-right: 5.4pt; background: #d3dfee; border-top: medium none; border-right: medium none; padding-top: 0in; mso-background-themecolor: accent1; mso-background-themetint: 63" valign="top" width="191"&gt;         &lt;p style="line-height: normal; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; mso-yfti-cnfc: 68" class="MsoNormal"&gt;&lt;b&gt;&lt;span style="color: #365f91; font-size: 10pt; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: &amp;#39;Times New Roman&amp;#39;; mso-bidi-font-family: &amp;#39;Times New Roman&amp;#39;; mso-themecolor: accent1; mso-themeshade: 191"&gt;Solution Manifest               &lt;p&gt;&lt;/p&gt;             &lt;/span&gt;&lt;/b&gt;&lt;/p&gt;       &lt;/td&gt;        &lt;td style="border-bottom: medium none; border-left: medium none; padding-bottom: 0in; padding-left: 5.4pt; width: 143.55pt; padding-right: 5.4pt; background: #d3dfee; border-top: medium none; border-right: medium none; padding-top: 0in; mso-background-themecolor: accent1; mso-background-themetint: 63" valign="top" width="191"&gt;         &lt;p style="line-height: normal; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; mso-yfti-cnfc: 64" class="MsoNormal"&gt;&lt;span style="color: #365f91; font-size: 10pt; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: &amp;#39;Times New Roman&amp;#39;; mso-bidi-font-family: &amp;#39;Times New Roman&amp;#39;; mso-themecolor: accent1; mso-themeshade: 191"&gt;OIR.config             &lt;p&gt;&lt;/p&gt;           &lt;/span&gt;&lt;/p&gt;       &lt;/td&gt;        &lt;td style="border-bottom: medium none; border-left: medium none; padding-bottom: 0in; padding-left: 5.4pt; width: 152.8pt; padding-right: 5.4pt; background: #d3dfee; border-top: medium none; border-right: medium none; padding-top: 0in; mso-background-themecolor: accent1; mso-background-themetint: 63" valign="top" width="204"&gt;         &lt;p style="line-height: normal; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; mso-yfti-cnfc: 64" class="MsoNormal"&gt;&lt;span style="color: #365f91; font-size: 10pt; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: &amp;#39;Times New Roman&amp;#39;; mso-bidi-font-family: &amp;#39;Times New Roman&amp;#39;; mso-themecolor: accent1; mso-themeshade: 191"&gt;Required; must be named OIR.config             &lt;p&gt;&lt;/p&gt;           &lt;/span&gt;&lt;/p&gt;       &lt;/td&gt;     &lt;/tr&gt;      &lt;tr style="mso-yfti-irow: 3"&gt;       &lt;td style="border-bottom: medium none; border-left: medium none; padding-bottom: 0in; padding-left: 5.4pt; width: 143.55pt; padding-right: 5.4pt; border-top: medium none; border-right: medium none; padding-top: 0in" valign="top" width="191"&gt;         &lt;p style="line-height: normal; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; mso-yfti-cnfc: 4" class="MsoNormal"&gt;&lt;b&gt;&lt;span style="color: #365f91; font-size: 10pt; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: &amp;#39;Times New Roman&amp;#39;; mso-bidi-font-family: &amp;#39;Times New Roman&amp;#39;; mso-themecolor: accent1; mso-themeshade: 191"&gt;VSTO Add-In assembly                &lt;p&gt;&lt;/p&gt;             &lt;/span&gt;&lt;/b&gt;&lt;/p&gt;       &lt;/td&gt;        &lt;td style="border-bottom: medium none; border-left: medium none; padding-bottom: 0in; padding-left: 5.4pt; width: 143.55pt; padding-right: 5.4pt; border-top: medium none; border-right: medium none; padding-top: 0in" valign="top" width="191"&gt;         &lt;p style="line-height: normal; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto" class="MsoNormal"&gt;&lt;span style="color: #365f91; font-size: 10pt; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: &amp;#39;Times New Roman&amp;#39;; mso-bidi-font-family: &amp;#39;Times New Roman&amp;#39;; mso-themecolor: accent1; mso-themeshade: 191"&gt;*.dll             &lt;p&gt;&lt;/p&gt;           &lt;/span&gt;&lt;/p&gt;       &lt;/td&gt;        &lt;td style="border-bottom: medium none; border-left: medium none; padding-bottom: 0in; padding-left: 5.4pt; width: 152.8pt; padding-right: 5.4pt; border-top: medium none; border-right: medium none; padding-top: 0in" valign="top" width="204"&gt;         &lt;p style="line-height: normal; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto" class="MsoNormal"&gt;&lt;span style="color: #365f91; font-size: 10pt; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: &amp;#39;Times New Roman&amp;#39;; mso-bidi-font-family: &amp;#39;Times New Roman&amp;#39;; mso-themecolor: accent1; mso-themeshade: 191"&gt;Required             &lt;p&gt;&lt;/p&gt;           &lt;/span&gt;&lt;/p&gt;       &lt;/td&gt;     &lt;/tr&gt;      &lt;tr style="mso-yfti-irow: 4"&gt;       &lt;td style="border-bottom: medium none; border-left: medium none; padding-bottom: 0in; padding-left: 5.4pt; width: 143.55pt; padding-right: 5.4pt; background: #d3dfee; border-top: medium none; border-right: medium none; padding-top: 0in; mso-background-themecolor: accent1; mso-background-themetint: 63" valign="top" width="191"&gt;         &lt;p style="line-height: normal; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; mso-yfti-cnfc: 68" class="MsoNormal"&gt;&lt;b&gt;&lt;span style="color: #365f91; font-size: 10pt; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: &amp;#39;Times New Roman&amp;#39;; mso-bidi-font-family: &amp;#39;Times New Roman&amp;#39;; mso-themecolor: accent1; mso-themeshade: 191"&gt;OIR or layout resource file(s)               &lt;p&gt;&lt;/p&gt;             &lt;/span&gt;&lt;/b&gt;&lt;/p&gt;       &lt;/td&gt;        &lt;td style="border-bottom: medium none; border-left: medium none; padding-bottom: 0in; padding-left: 5.4pt; width: 143.55pt; padding-right: 5.4pt; background: #d3dfee; border-top: medium none; border-right: medium none; padding-top: 0in; mso-background-themecolor: accent1; mso-background-themetint: 63" valign="top" width="191"&gt;         &lt;p style="line-height: normal; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; mso-yfti-cnfc: 64" class="MsoNormal"&gt;&lt;span style="color: #365f91; font-size: 10pt; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: &amp;#39;Times New Roman&amp;#39;; mso-bidi-font-family: &amp;#39;Times New Roman&amp;#39;; mso-themecolor: accent1; mso-themeshade: 191"&gt;*.resx             &lt;p&gt;&lt;/p&gt;           &lt;/span&gt;&lt;/p&gt;       &lt;/td&gt;        &lt;td style="border-bottom: medium none; border-left: medium none; padding-bottom: 0in; padding-left: 5.4pt; width: 152.8pt; padding-right: 5.4pt; background: #d3dfee; border-top: medium none; border-right: medium none; padding-top: 0in; mso-background-themecolor: accent1; mso-background-themetint: 63" valign="top" width="204"&gt;         &lt;p style="line-height: normal; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; mso-yfti-cnfc: 64" class="MsoNormal"&gt;&lt;span style="color: #365f91; font-size: 10pt; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: &amp;#39;Times New Roman&amp;#39;; mso-bidi-font-family: &amp;#39;Times New Roman&amp;#39;; mso-themecolor: accent1; mso-themeshade: 191"&gt;Optional             &lt;p&gt;&lt;/p&gt;           &lt;/span&gt;&lt;/p&gt;       &lt;/td&gt;     &lt;/tr&gt;      &lt;tr style="mso-yfti-irow: 5; mso-yfti-lastrow: yes"&gt;       &lt;td style="border-bottom: #4f81bd 1pt solid; border-left: medium none; padding-bottom: 0in; padding-left: 5.4pt; width: 143.55pt; padding-right: 5.4pt; border-top: medium none; border-right: medium none; padding-top: 0in; mso-border-bottom-themecolor: accent1" valign="top" width="191"&gt;         &lt;p style="line-height: normal; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; mso-yfti-cnfc: 4" class="MsoNormal"&gt;&lt;b&gt;&lt;span style="color: #365f91; font-size: 10pt; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: &amp;#39;Times New Roman&amp;#39;; mso-bidi-font-family: &amp;#39;Times New Roman&amp;#39;; mso-themecolor: accent1; mso-themeshade: 191"&gt;Icon(s)               &lt;p&gt;&lt;/p&gt;             &lt;/span&gt;&lt;/b&gt;&lt;/p&gt;       &lt;/td&gt;        &lt;td style="border-bottom: #4f81bd 1pt solid; border-left: medium none; padding-bottom: 0in; padding-left: 5.4pt; width: 143.55pt; padding-right: 5.4pt; border-top: medium none; border-right: medium none; padding-top: 0in; mso-border-bottom-themecolor: accent1" valign="top" width="191"&gt;         &lt;p style="line-height: normal; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto" class="MsoNormal"&gt;&lt;span style="color: #365f91; font-size: 10pt; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: &amp;#39;Times New Roman&amp;#39;; mso-bidi-font-family: &amp;#39;Times New Roman&amp;#39;; mso-themecolor: accent1; mso-themeshade: 191"&gt;*.ico, *.jpg, *.png             &lt;p&gt;&lt;/p&gt;           &lt;/span&gt;&lt;/p&gt;       &lt;/td&gt;        &lt;td style="border-bottom: #4f81bd 1pt solid; border-left: medium none; padding-bottom: 0in; padding-left: 5.4pt; width: 152.8pt; padding-right: 5.4pt; border-top: medium none; border-right: medium none; padding-top: 0in; mso-border-bottom-themecolor: accent1" valign="top" width="204"&gt;         &lt;p style="line-height: normal; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto" class="MsoNormal"&gt;&lt;span style="color: #365f91; font-size: 10pt; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: &amp;#39;Times New Roman&amp;#39;; mso-bidi-font-family: &amp;#39;Times New Roman&amp;#39;; mso-themecolor: accent1; mso-themeshade: 191"&gt;Optional             &lt;p&gt;&lt;/p&gt;           &lt;/span&gt;&lt;/p&gt;       &lt;/td&gt;     &lt;/tr&gt;   &lt;/tbody&gt;&lt;/table&gt;  &lt;h3&gt;BCS Solution Tools&lt;/h3&gt;  &lt;p&gt;For more information on the &lt;b&gt;BCS Solution Packaging Tool&lt;/b&gt; read the blog post &lt;a href="http://blogs.msdn.com/bcs/archive/2010/04/25/bcs-solution-packaging-tool.aspx"&gt;BCS Solution Packaging Tool&lt;/a&gt;.&lt;/p&gt;  &lt;p&gt;&lt;a href="http://blogs.msdn.com/cfs-file.ashx/__key/CommunityServer-Blogs-Components-WeblogFiles/00-00-01-29-04-metablogapi/8407.clip_5F00_image006_5F00_386801AF.jpg"&gt;&lt;img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="clip_image006" border="0" alt="clip_image006" src="http://blogs.msdn.com/cfs-file.ashx/__key/CommunityServer-Blogs-Components-WeblogFiles/00-00-01-29-04-metablogapi/6825.clip_5F00_image006_5F00_thumb_5F00_634065C1.jpg" width="326" height="371" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;For more information on the &lt;b&gt;BCS Artifact Generator&lt;/b&gt; see the blog post BCS Artifact Generator.&lt;/p&gt;  &lt;p&gt;&lt;a href="http://blogs.msdn.com/cfs-file.ashx/__key/CommunityServer-Blogs-Components-WeblogFiles/00-00-01-29-04-metablogapi/7418.clip_5F00_image008_5F00_230A4C47.jpg"&gt;&lt;img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="clip_image008" border="0" alt="clip_image008" src="http://blogs.msdn.com/cfs-file.ashx/__key/CommunityServer-Blogs-Components-WeblogFiles/00-00-01-29-04-metablogapi/2211.clip_5F00_image008_5F00_thumb_5F00_42B9260F.jpg" width="372" height="293" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;h4&gt;&lt;/h4&gt;  &lt;h3&gt;Further Reading&lt;/h3&gt;  &lt;p&gt;For more information check out the follow MSDN articles:&lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/ee906650.aspx"&gt;Types of Solutions You Can Create Using BCS&lt;/a&gt;&lt;/li&gt;    &lt;li&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/ff394635.aspx"&gt;Creating Advanced Code-Based Solutions Using Business Connectivity Services&lt;/a&gt;&lt;/li&gt;    &lt;li&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/ee819909(v=office.14).aspx"&gt;Creating Intermediate Declarative Outlook Solutions Using Business Connectivity Services&lt;/a&gt;&lt;/li&gt;    &lt;li&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/ff394455(v=office.14).aspx"&gt;Useful Resources for Creating an Intermediate Declarative Outlook Solution&lt;/a&gt;&lt;/li&gt;    &lt;li&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/ff394657(v=office.14).aspx"&gt;Frequently Asked Questions: Declarative Outlook Solution&lt;/a&gt;&lt;/li&gt; &lt;/ul&gt;  &lt;p&gt;Thanks for reading!&lt;/p&gt;  &lt;p&gt;Russell Palmer&lt;/p&gt;  &lt;p&gt;Program Manager&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10019743" width="1" height="1"&gt;</description></item><item><title>How do I optimize backend synchronization?</title><link>http://blogs.msdn.com/b/bcs/archive/2010/05/13/how-do-i-optimize-backend-synchronization.aspx</link><pubDate>Thu, 13 May 2010 15:55:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10009437</guid><dc:creator>lionelro</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blogs.msdn.com/b/bcs/rsscomments.aspx?WeblogPostID=10009437</wfw:commentRss><comments>http://blogs.msdn.com/b/bcs/archive/2010/05/13/how-do-i-optimize-backend-synchronization.aspx#comments</comments><description>&lt;P&gt;Business Connectivity Services (BCS) has a synchronization framework that uses a client cache to enable you to work with external data even when disconnected. &lt;/P&gt;
&lt;P&gt;In this post, we’ll discuss ways to optimize solutions to best use the synchronization framework client cache. We’ll be using the &lt;B&gt;Contoso Sales Manager&lt;/B&gt; sample solution presented in the previous post, &lt;A href="http://blogs.msdn.com/bcs/archive/2010/04/25/bcs-solution-packaging-tool.aspx" mce_href="http://blogs.msdn.com/bcs/archive/2010/04/25/bcs-solution-packaging-tool.aspx"&gt;&lt;B&gt;BCS Solution Packaging Tool&lt;/B&gt;&lt;/A&gt;. Please check that post for instructions on how to package and deploy the solution.&lt;/P&gt;
&lt;H4&gt;&lt;B&gt;How does the client cache work?&lt;/B&gt;&lt;/H4&gt;
&lt;P&gt;When a solution is deployed to an Office client, a process called BCSSync.exe contacts the external system directly and downloads the data into a per-user SQL CE database managed by the synchronization framework.&lt;/P&gt;
&lt;P&gt;Every client will be contacting the external system directly, so it’s really important to optimize your solution for offline use to minimize the load on the external system. &lt;/P&gt;
&lt;H4&gt;&lt;B&gt;Working with Subscriptions&lt;/B&gt;&lt;/H4&gt;
&lt;P&gt;To determine what data will be brought to the client cache, solutions need to define subscription xml files. Each subscription file is responsible for defining how to request data from the external system.&lt;/P&gt;
&lt;P&gt;Subscriptions can have 3 types of items: Queries, Explicit Identities and Associations. Queries point to finders that will be executed against the external system to populate the cache, Explicit Identities are additional instances that are added individually to the subscription, and Associations are used to bring related instances. &lt;/P&gt;
&lt;P&gt;Here is the subscription file for &lt;B&gt;Contoso Sales Manager&lt;/B&gt; solution defining how to request data for the “Customers” external content type. &lt;BR&gt;&lt;/P&gt;
&lt;DIV style="BORDER-BOTTOM: windowtext 1pt solid; BORDER-LEFT: windowtext 1pt solid; PADDING-BOTTOM: 1pt; PADDING-LEFT: 4pt; PADDING-RIGHT: 4pt; BORDER-TOP: windowtext 1pt solid; BORDER-RIGHT: windowtext 1pt solid; PADDING-TOP: 1pt; mso-element: para-border-div; mso-border-alt: solid windowtext .5pt"&gt;
&lt;P style="BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; PADDING-BOTTOM: 0in; LINE-HEIGHT: normal; PADDING-LEFT: 0in; PADDING-RIGHT: 0in; MARGIN-BOTTOM: 0pt; BORDER-TOP: medium none; BORDER-RIGHT: medium none; PADDING-TOP: 0in; mso-border-alt: solid windowtext .5pt; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt" class=MsoNormal&gt;&lt;SPAN style="FONT-FAMILY: consolas; COLOR: blue; FONT-SIZE: 9.5pt"&gt;&amp;lt;?&lt;/SPAN&gt;&lt;SPAN style="FONT-FAMILY: consolas; COLOR: #a31515; FONT-SIZE: 9.5pt"&gt;xml&lt;/SPAN&gt;&lt;SPAN style="FONT-FAMILY: consolas; COLOR: blue; FONT-SIZE: 9.5pt"&gt; &lt;/SPAN&gt;&lt;SPAN style="FONT-FAMILY: consolas; COLOR: red; FONT-SIZE: 9.5pt"&gt;version&lt;/SPAN&gt;&lt;SPAN style="FONT-FAMILY: consolas; COLOR: blue; FONT-SIZE: 9.5pt"&gt;=&lt;/SPAN&gt;&lt;SPAN style="FONT-FAMILY: consolas; FONT-SIZE: 9.5pt"&gt;"&lt;SPAN style="COLOR: blue"&gt;1.0&lt;/SPAN&gt;"&lt;SPAN style="COLOR: blue"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR: red"&gt;encoding&lt;/SPAN&gt;&lt;SPAN style="COLOR: blue"&gt;=&lt;/SPAN&gt;"&lt;SPAN style="COLOR: blue"&gt;utf-8&lt;/SPAN&gt;"&lt;SPAN style="COLOR: blue"&gt;?&amp;gt; &lt;BR&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="FONT-FAMILY: consolas; COLOR: blue; FONT-SIZE: 9.5pt"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="FONT-FAMILY: consolas; COLOR: #a31515; FONT-SIZE: 9.5pt"&gt;Subscription&lt;/SPAN&gt;&lt;SPAN style="FONT-FAMILY: consolas; COLOR: blue; FONT-SIZE: 9.5pt"&gt; &lt;/SPAN&gt;&lt;SPAN style="FONT-FAMILY: consolas; COLOR: red; FONT-SIZE: 9.5pt"&gt;LobSystemInstanceName&lt;/SPAN&gt;&lt;SPAN style="FONT-FAMILY: consolas; COLOR: blue; FONT-SIZE: 9.5pt"&gt;=&lt;/SPAN&gt;&lt;SPAN style="FONT-FAMILY: consolas; FONT-SIZE: 9.5pt"&gt;"&lt;SPAN style="COLOR: blue"&gt;AdventureWorksContosoLOBInstance&lt;/SPAN&gt;"&amp;nbsp; &lt;BR&gt;&lt;SPAN style="COLOR: red"&gt;&lt;FONT color=#000000&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/FONT&gt;EntityNamespace&lt;/SPAN&gt;&lt;SPAN style="COLOR: blue"&gt;=&lt;/SPAN&gt;"&lt;SPAN style="COLOR: blue"&gt;AdventureWorksContoso&lt;/SPAN&gt;"&lt;SPAN style="COLOR: blue"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR: red"&gt;EntityName&lt;/SPAN&gt;&lt;SPAN style="COLOR: blue"&gt;=&lt;/SPAN&gt;"&lt;SPAN style="COLOR: blue"&gt;Customer&lt;/SPAN&gt;"&lt;SPAN style="COLOR: blue"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR: red"&gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Name&lt;/SPAN&gt;&lt;SPAN style="COLOR: blue"&gt;=&lt;/SPAN&gt;"&lt;SPAN style="COLOR: blue"&gt;AdventureWorksContosoCustomerSubscription&lt;/SPAN&gt;"&lt;SPAN style="COLOR: blue"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR: red"&gt;View&lt;/SPAN&gt;&lt;SPAN style="COLOR: blue"&gt;=&lt;/SPAN&gt;"&lt;SPAN style="COLOR: blue"&gt;GetCustomerById&lt;/SPAN&gt;"&lt;SPAN style="COLOR: blue"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR: red"&gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; IsCached&lt;/SPAN&gt;&lt;SPAN style="COLOR: blue"&gt;=&lt;/SPAN&gt;"&lt;SPAN style="COLOR: blue"&gt;true&lt;/SPAN&gt;"&lt;SPAN style="COLOR: blue"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR: red"&gt;RefreshIntervalInMinutes&lt;/SPAN&gt;&lt;SPAN style="COLOR: blue"&gt;=&lt;/SPAN&gt;"&lt;SPAN style="COLOR: blue"&gt;360&lt;/SPAN&gt;" &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="COLOR: red"&gt;xmlns&lt;/SPAN&gt;&lt;SPAN style="COLOR: blue"&gt;="&lt;/SPAN&gt;&lt;SPAN style="COLOR: blue"&gt;http://schemas.microsoft.com/office/2006/03/BusinessDataCatalog"&lt;/SPAN&gt;&lt;SPAN style="COLOR: blue"&gt;&amp;gt; &lt;BR&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="FONT-FAMILY: consolas; COLOR: blue; FONT-SIZE: 9.5pt"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/SPAN&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="FONT-FAMILY: consolas; COLOR: #a31515; FONT-SIZE: 9.5pt"&gt;Queries&lt;/SPAN&gt;&lt;SPAN style="FONT-FAMILY: consolas; COLOR: blue; FONT-SIZE: 9.5pt"&gt;&amp;gt; &lt;BR&gt;&lt;/SPAN&gt;&lt;SPAN style="FONT-FAMILY: consolas; COLOR: blue; FONT-SIZE: 9.5pt"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="FONT-FAMILY: consolas; COLOR: #a31515; FONT-SIZE: 9.5pt"&gt;Query&lt;/SPAN&gt;&lt;SPAN style="FONT-FAMILY: consolas; COLOR: blue; FONT-SIZE: 9.5pt"&gt; &lt;/SPAN&gt;&lt;SPAN style="FONT-FAMILY: consolas; COLOR: red; FONT-SIZE: 9.5pt"&gt;Name&lt;/SPAN&gt;&lt;SPAN style="FONT-FAMILY: consolas; COLOR: blue; FONT-SIZE: 9.5pt"&gt;=&lt;/SPAN&gt;&lt;SPAN style="FONT-FAMILY: consolas; FONT-SIZE: 9.5pt"&gt;"&lt;SPAN style="COLOR: blue"&gt;AdventureWorksContosoCustomerQuery&lt;/SPAN&gt;"&lt;SPAN style="COLOR: blue"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR: red"&gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MethodInstanceName&lt;/SPAN&gt;&lt;SPAN style="COLOR: blue"&gt;=&lt;/SPAN&gt;"&lt;SPAN style="COLOR: blue"&gt;GetCustomers&lt;/SPAN&gt;"&lt;SPAN style="COLOR: blue"&gt; &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="COLOR: red"&gt;DefaultDisplayName&lt;/SPAN&gt;&lt;SPAN style="COLOR: blue"&gt;=&lt;/SPAN&gt;"&lt;SPAN style="COLOR: blue"&gt;Customer Read List&lt;/SPAN&gt;"&lt;SPAN style="COLOR: blue"&gt; &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="COLOR: red"&gt;RefreshIntervalInMinutes&lt;/SPAN&gt;&lt;SPAN style="COLOR: blue"&gt;=&lt;/SPAN&gt;"&lt;SPAN style="COLOR: blue"&gt;180&lt;/SPAN&gt;"&lt;SPAN style="COLOR: blue"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR: red"&gt;IsCached&lt;/SPAN&gt;&lt;SPAN style="COLOR: blue"&gt;=&lt;/SPAN&gt;"&lt;SPAN style="COLOR: blue"&gt;true&lt;/SPAN&gt;"&lt;SPAN style="COLOR: blue"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR: red"&gt;Enabled&lt;/SPAN&gt;&lt;SPAN style="COLOR: blue"&gt;=&lt;/SPAN&gt;"&lt;SPAN style="COLOR: blue"&gt;true&lt;/SPAN&gt;"&lt;SPAN style="COLOR: blue"&gt; /&amp;gt; &lt;BR&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="FONT-FAMILY: consolas; COLOR: blue; FONT-SIZE: 9.5pt"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/SPAN&gt;&amp;lt;/&lt;/SPAN&gt;&lt;SPAN style="FONT-FAMILY: consolas; COLOR: #a31515; FONT-SIZE: 9.5pt"&gt;Queries&lt;/SPAN&gt;&lt;SPAN style="FONT-FAMILY: consolas; COLOR: blue; FONT-SIZE: 9.5pt"&gt;&amp;gt; &lt;BR&gt;&lt;/SPAN&gt;&lt;SPAN style="FONT-FAMILY: consolas; COLOR: blue; FONT-SIZE: 9.5pt"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/SPAN&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="FONT-FAMILY: consolas; COLOR: #a31515; FONT-SIZE: 9.5pt"&gt;Associations&lt;/SPAN&gt;&lt;SPAN style="FONT-FAMILY: consolas; COLOR: blue; FONT-SIZE: 9.5pt"&gt;&amp;gt; &lt;BR&gt;&lt;/SPAN&gt;&lt;SPAN style="FONT-FAMILY: consolas; COLOR: blue; FONT-SIZE: 9.5pt"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="FONT-FAMILY: consolas; COLOR: #a31515; FONT-SIZE: 9.5pt"&gt;Association&lt;/SPAN&gt;&lt;SPAN style="FONT-FAMILY: consolas; COLOR: blue; FONT-SIZE: 9.5pt"&gt; &lt;/SPAN&gt;&lt;SPAN style="FONT-FAMILY: consolas; COLOR: red; FONT-SIZE: 9.5pt"&gt;Name&lt;/SPAN&gt;&lt;SPAN style="FONT-FAMILY: consolas; COLOR: blue; FONT-SIZE: 9.5pt"&gt;=&lt;/SPAN&gt;&lt;SPAN style="FONT-FAMILY: consolas; FONT-SIZE: 9.5pt"&gt;"&lt;SPAN style="COLOR: blue"&gt;GetOrdersForCustomer&lt;/SPAN&gt;" &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="COLOR: red"&gt;MethodInstanceName&lt;/SPAN&gt;&lt;SPAN style="COLOR: blue"&gt;=&lt;/SPAN&gt;"&lt;SPAN style="COLOR: blue"&gt;GetOrdersForCustomer&lt;/SPAN&gt;"&lt;SPAN style="COLOR: blue"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR: red"&gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; TargetSubscriptionName&lt;/SPAN&gt;&lt;SPAN style="COLOR: blue"&gt;=&lt;/SPAN&gt;"&lt;SPAN style="COLOR: blue"&gt;AdventureWorksContosoOrderHeaderSubscription&lt;/SPAN&gt;"&lt;SPAN style="COLOR: blue"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR: red"&gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; TargetView&lt;/SPAN&gt;&lt;SPAN style="COLOR: blue"&gt;=&lt;/SPAN&gt;"&lt;SPAN style="COLOR: blue"&gt;GetSalesOrderHeaderById&lt;/SPAN&gt;"&lt;SPAN style="COLOR: blue"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR: red"&gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LobSystemInstanceName&lt;/SPAN&gt;&lt;SPAN style="COLOR: blue"&gt;=&lt;/SPAN&gt;"&lt;SPAN style="COLOR: blue"&gt;AdventureWorksContosoLOBInstance&lt;/SPAN&gt;"&lt;SPAN style="COLOR: blue"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="COLOR: red"&gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; RefreshIntervalInMinutes&lt;/SPAN&gt;&lt;SPAN style="COLOR: blue"&gt;=&lt;/SPAN&gt;"&lt;SPAN style="COLOR: blue"&gt;60&lt;/SPAN&gt;"&lt;SPAN style="COLOR: blue"&gt;/&amp;gt; &lt;BR&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="FONT-FAMILY: consolas; COLOR: blue; FONT-SIZE: 9.5pt"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/SPAN&gt;&amp;lt;/&lt;/SPAN&gt;&lt;SPAN style="FONT-FAMILY: consolas; COLOR: #a31515; FONT-SIZE: 9.5pt"&gt;Associations&lt;/SPAN&gt;&lt;SPAN style="FONT-FAMILY: consolas; COLOR: blue; FONT-SIZE: 9.5pt"&gt;&amp;gt; &lt;BR&gt;&lt;/SPAN&gt;&lt;SPAN style="LINE-HEIGHT: 115%; FONT-FAMILY: consolas; COLOR: blue; FONT-SIZE: 9.5pt"&gt;&amp;lt;/&lt;/SPAN&gt;&lt;SPAN style="LINE-HEIGHT: 115%; FONT-FAMILY: consolas; COLOR: #a31515; FONT-SIZE: 9.5pt"&gt;Subscription&lt;/SPAN&gt;&lt;SPAN style="LINE-HEIGHT: 115%; FONT-FAMILY: consolas; COLOR: blue; FONT-SIZE: 9.5pt"&gt;&amp;gt;&lt;/SPAN&gt; &lt;/P&gt;
&lt;P mce_keep="true"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P mce_keep="true"&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;
&lt;P&gt;The subscription above has one query, which runs the “GetCustomers” Finder on the external content type. All Customer instances returned by the finder call will be cached locally on every client that has the solution installed. The refresh interval for the query is set to 180 minutes, so every 3 hours the finder will be executed and the local data will be refreshed on each client. &lt;BR&gt;&lt;/P&gt;
&lt;DIV style="BORDER-BOTTOM: windowtext 1pt solid; BORDER-LEFT: windowtext 1pt solid; PADDING-BOTTOM: 1pt; PADDING-LEFT: 4pt; PADDING-RIGHT: 4pt; BACKGROUND: #eaf1dd; BORDER-TOP: windowtext 1pt solid; BORDER-RIGHT: windowtext 1pt solid; PADDING-TOP: 1pt; mso-element: para-border-div; mso-border-alt: solid windowtext .5pt; mso-background-themecolor: accent3; mso-background-themetint: 51"&gt;
&lt;P style="BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; PADDING-BOTTOM: 0in; PADDING-LEFT: 0in; PADDING-RIGHT: 0in; BACKGROUND: #eaf1dd; BORDER-TOP: medium none; BORDER-RIGHT: medium none; PADDING-TOP: 0in; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; mso-background-themecolor: accent3; mso-background-themetint: 51" class=MsoNormal&gt;&lt;B style="mso-bidi-font-weight: normal"&gt;NOTE&lt;/B&gt;: When working with the client cache, it’s important to know that it performs best when the Finder view matches the SpecificFinder view. If the Finder returns a subset of the fields that the SpecificFinder returns, the synchronization framework is forced to call the SpecificFinder on every instance returned by the finder to populate all fields of the instance. If it’s not possible for the Finder and the SpecificFinder views to match, bulk stereotypes can be used to improve performance. Bulk stereotypes will be covered on a later post.&lt;/P&gt;&lt;/DIV&gt;
&lt;H4&gt;&lt;B&gt;Optimizing Subscriptions&lt;/B&gt;&lt;/H4&gt;
&lt;H5&gt;&lt;B&gt;&lt;B&gt;Explicit Identities&lt;/B&gt;&lt;/B&gt;&lt;/H5&gt;
&lt;P&gt;If you know exactly which items to synchronize, you can just add their identities to the subscription individually. This is a lot easier to do programmatically since you have to put the serialized identity on the subscription XML file.&lt;/P&gt;
&lt;P&gt;To get the serialized Identity, you need to instantiate an Identity object with the appropriate identifier values, and call its Serialize method. More information can be found at the&lt;B&gt; &lt;/B&gt;&lt;A href="http://msdn.microsoft.com/en-us/library/microsoft.businessdata.runtime.identity.serialize%28v=office.14%29.aspx" mce_href="http://msdn.microsoft.com/en-us/library/microsoft.businessdata.runtime.identity.serialize%28v=office.14%29.aspx"&gt;&lt;B&gt;Identity.Serialize method page on MSDN&lt;/B&gt;&lt;/A&gt;. Once you have the Identity’s serialized string, you just need to add it in an “&amp;lt;Identity&amp;gt;” tag within the “&amp;lt;Identities&amp;gt;” tag, as will be shown later in the example.&lt;/P&gt;
&lt;H5&gt;&lt;B&gt;Filtering data&lt;/B&gt;&lt;/H5&gt;
&lt;P&gt;The obvious way to optimize synchronization is to reduce the amount of data that is downloaded by the client. The easiest way to do this is by using filters. The filters supported by the synchronization framework that can be used to reduce the number of items downloaded are Wildcard, Comparison and Limit filters.&lt;/P&gt;
&lt;P&gt;For example, you can use a Wildcard filter to download all employees whose names start with the letter “M” using “M*” as the filter value. Or you can select all customers that have their zip code equal to “98052” using a comparison filter. A limit filter can be used to limit the number of products to 100.&lt;/P&gt;
&lt;H5&gt;&lt;B&gt;Example&lt;/B&gt;&lt;/H5&gt;
&lt;P&gt;Here is an example of the subscription above with 11003 and 11020 as explicit identities and a filter to return only customer with CustumerIDs greater than 11050. &lt;BR&gt;&lt;/P&gt;
&lt;DIV style="BORDER-BOTTOM: windowtext 1pt solid; BORDER-LEFT: windowtext 1pt solid; PADDING-BOTTOM: 1pt; PADDING-LEFT: 4pt; PADDING-RIGHT: 4pt; BORDER-TOP: windowtext 1pt solid; BORDER-RIGHT: windowtext 1pt solid; PADDING-TOP: 1pt; mso-element: para-border-div; mso-border-alt: solid windowtext .5pt"&gt;
&lt;P style="BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; PADDING-BOTTOM: 0in; LINE-HEIGHT: normal; PADDING-LEFT: 0in; PADDING-RIGHT: 0in; MARGIN-BOTTOM: 0pt; BORDER-TOP: medium none; BORDER-RIGHT: medium none; PADDING-TOP: 0in; mso-border-alt: solid windowtext .5pt; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt" class=MsoNormal&gt;&lt;SPAN style="FONT-FAMILY: consolas; COLOR: blue; FONT-SIZE: 9.5pt"&gt;&amp;lt;?&lt;/SPAN&gt;&lt;SPAN style="FONT-FAMILY: consolas; COLOR: #a31515; FONT-SIZE: 9.5pt"&gt;xml&lt;/SPAN&gt;&lt;SPAN style="FONT-FAMILY: consolas; COLOR: blue; FONT-SIZE: 9.5pt"&gt; &lt;/SPAN&gt;&lt;SPAN style="FONT-FAMILY: consolas; COLOR: red; FONT-SIZE: 9.5pt"&gt;version&lt;/SPAN&gt;&lt;SPAN style="FONT-FAMILY: consolas; COLOR: blue; FONT-SIZE: 9.5pt"&gt;=&lt;/SPAN&gt;&lt;SPAN style="FONT-FAMILY: consolas; FONT-SIZE: 9.5pt"&gt;"&lt;SPAN style="COLOR: blue"&gt;1.0&lt;/SPAN&gt;"&lt;SPAN style="COLOR: blue"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR: red"&gt;encoding&lt;/SPAN&gt;&lt;SPAN style="COLOR: blue"&gt;=&lt;/SPAN&gt;"&lt;SPAN style="COLOR: blue"&gt;utf-8&lt;/SPAN&gt;"&lt;SPAN style="COLOR: blue"&gt;?&amp;gt; &lt;BR&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="FONT-FAMILY: consolas; COLOR: blue; FONT-SIZE: 9.5pt"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="FONT-FAMILY: consolas; COLOR: #a31515; FONT-SIZE: 9.5pt"&gt;Subscription&lt;/SPAN&gt;&lt;SPAN style="FONT-FAMILY: consolas; COLOR: blue; FONT-SIZE: 9.5pt"&gt; &lt;/SPAN&gt;&lt;SPAN style="FONT-FAMILY: consolas; COLOR: red; FONT-SIZE: 9.5pt"&gt;LobSystemInstanceName&lt;/SPAN&gt;&lt;SPAN style="FONT-FAMILY: consolas; COLOR: blue; FONT-SIZE: 9.5pt"&gt;=&lt;/SPAN&gt;&lt;SPAN style="FONT-FAMILY: consolas; FONT-SIZE: 9.5pt"&gt;"&lt;SPAN style="COLOR: blue"&gt;AdventureWorksContosoLOBInstance&lt;/SPAN&gt;"&lt;SPAN style="COLOR: blue"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR: red"&gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; EntityNamespace&lt;/SPAN&gt;&lt;SPAN style="COLOR: blue"&gt;=&lt;/SPAN&gt;"&lt;SPAN style="COLOR: blue"&gt;AdventureWorksContoso&lt;/SPAN&gt;"&lt;SPAN style="COLOR: blue"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR: red"&gt;EntityName&lt;/SPAN&gt;&lt;SPAN style="COLOR: blue"&gt;=&lt;/SPAN&gt;"&lt;SPAN style="COLOR: blue"&gt;Customer&lt;/SPAN&gt;"&lt;SPAN style="COLOR: blue"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR: red"&gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Name&lt;/SPAN&gt;&lt;SPAN style="COLOR: blue"&gt;=&lt;/SPAN&gt;"&lt;SPAN style="COLOR: blue"&gt;AdventureWorksContosoCustomerSubscription&lt;/SPAN&gt;"&lt;SPAN style="COLOR: blue"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR: red"&gt;View&lt;/SPAN&gt;&lt;SPAN style="COLOR: blue"&gt;=&lt;/SPAN&gt;"&lt;SPAN style="COLOR: blue"&gt;GetCustomerById&lt;/SPAN&gt;"&lt;SPAN style="COLOR: blue"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR: red"&gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; IsCached&lt;/SPAN&gt;&lt;SPAN style="COLOR: blue"&gt;=&lt;/SPAN&gt;"&lt;SPAN style="COLOR: blue"&gt;true&lt;/SPAN&gt;"&lt;SPAN style="COLOR: blue"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR: red"&gt;RefreshIntervalInMinutes&lt;/SPAN&gt;&lt;SPAN style="COLOR: blue"&gt;=&lt;/SPAN&gt;"&lt;SPAN style="COLOR: blue"&gt;360&lt;/SPAN&gt;"&lt;SPAN style="COLOR: blue"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR: red"&gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; xmlns&lt;/SPAN&gt;&lt;SPAN style="COLOR: blue"&gt;=&lt;/SPAN&gt;"&lt;SPAN style="COLOR: blue"&gt;http://schemas.microsoft.com/office/2006/03/BusinessDataCatalog&lt;/SPAN&gt;"&lt;SPAN style="COLOR: blue"&gt;&amp;gt; &lt;BR&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="FONT-FAMILY: consolas; COLOR: blue; FONT-SIZE: 9.5pt"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/SPAN&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="FONT-FAMILY: consolas; COLOR: #a31515; FONT-SIZE: 9.5pt"&gt;Identities&lt;/SPAN&gt;&lt;SPAN style="FONT-FAMILY: consolas; COLOR: blue; FONT-SIZE: 9.5pt"&gt;&amp;gt; &lt;BR&gt;&lt;/SPAN&gt;&lt;SPAN style="FONT-FAMILY: consolas; COLOR: blue; FONT-SIZE: 9.5pt"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="FONT-FAMILY: consolas; COLOR: #a31515; FONT-SIZE: 9.5pt"&gt;Identity&lt;/SPAN&gt;&lt;SPAN style="FONT-FAMILY: consolas; COLOR: blue; FONT-SIZE: 9.5pt"&gt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN style="FONT-FAMILY: consolas; FONT-SIZE: 9.5pt"&gt;i+yoAAA==&lt;SPAN style="COLOR: blue"&gt;&amp;lt;/&lt;/SPAN&gt;&lt;SPAN style="COLOR: #a31515"&gt;Identity&lt;/SPAN&gt;&lt;SPAN style="COLOR: blue"&gt;&amp;gt; &lt;BR&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="FONT-FAMILY: consolas; COLOR: blue; FONT-SIZE: 9.5pt"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="FONT-FAMILY: consolas; COLOR: #a31515; FONT-SIZE: 9.5pt"&gt;Identity&lt;/SPAN&gt;&lt;SPAN style="FONT-FAMILY: consolas; COLOR: blue; FONT-SIZE: 9.5pt"&gt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN style="FONT-FAMILY: consolas; FONT-SIZE: 9.5pt"&gt;iDCsAAA==&lt;SPAN style="COLOR: blue"&gt;&amp;lt;/&lt;/SPAN&gt;&lt;SPAN style="COLOR: #a31515"&gt;Identity&lt;/SPAN&gt;&lt;SPAN style="COLOR: blue"&gt;&amp;gt; &lt;BR&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="FONT-FAMILY: consolas; COLOR: blue; FONT-SIZE: 9.5pt"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/SPAN&gt;&amp;lt;/&lt;/SPAN&gt;&lt;SPAN style="FONT-FAMILY: consolas; COLOR: #a31515; FONT-SIZE: 9.5pt"&gt;Identities&lt;/SPAN&gt;&lt;SPAN style="FONT-FAMILY: consolas; COLOR: blue; FONT-SIZE: 9.5pt"&gt;&amp;gt; &lt;BR&gt;&lt;/SPAN&gt;&lt;SPAN style="FONT-FAMILY: consolas; COLOR: blue; FONT-SIZE: 9.5pt"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/SPAN&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="FONT-FAMILY: consolas; COLOR: #a31515; FONT-SIZE: 9.5pt"&gt;Queries&lt;/SPAN&gt;&lt;SPAN style="FONT-FAMILY: consolas; COLOR: blue; FONT-SIZE: 9.5pt"&gt;&amp;gt; &lt;BR&gt;&lt;/SPAN&gt;&lt;SPAN style="FONT-FAMILY: consolas; COLOR: blue; FONT-SIZE: 9.5pt"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="FONT-FAMILY: consolas; COLOR: #a31515; FONT-SIZE: 9.5pt"&gt;Query&lt;/SPAN&gt;&lt;SPAN style="FONT-FAMILY: consolas; COLOR: blue; FONT-SIZE: 9.5pt"&gt; &lt;/SPAN&gt;&lt;SPAN style="FONT-FAMILY: consolas; COLOR: red; FONT-SIZE: 9.5pt"&gt;Name&lt;/SPAN&gt;&lt;SPAN style="FONT-FAMILY: consolas; COLOR: blue; FONT-SIZE: 9.5pt"&gt;=&lt;/SPAN&gt;&lt;SPAN style="FONT-FAMILY: consolas; FONT-SIZE: 9.5pt"&gt;"&lt;SPAN style="COLOR: blue"&gt;AdventureWorksContosoCustomerQuery&lt;/SPAN&gt;"&lt;SPAN style="COLOR: blue"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR: red"&gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MethodInstanceName&lt;/SPAN&gt;&lt;SPAN style="COLOR: blue"&gt;=&lt;/SPAN&gt;"&lt;SPAN style="COLOR: blue"&gt;GetCustomers&lt;/SPAN&gt;"&lt;SPAN style="COLOR: blue"&gt; &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="COLOR: red"&gt;DefaultDisplayName&lt;/SPAN&gt;&lt;SPAN style="COLOR: blue"&gt;=&lt;/SPAN&gt;"&lt;SPAN style="COLOR: blue"&gt;Customer Read List&lt;/SPAN&gt;"&lt;SPAN style="COLOR: blue"&gt; &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="COLOR: red"&gt;RefreshIntervalInMinutes&lt;/SPAN&gt;&lt;SPAN style="COLOR: blue"&gt;=&lt;/SPAN&gt;"&lt;SPAN style="COLOR: blue"&gt;180&lt;/SPAN&gt;"&lt;SPAN style="COLOR: blue"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR: red"&gt;IsCached&lt;/SPAN&gt;&lt;SPAN style="COLOR: blue"&gt;=&lt;/SPAN&gt;"&lt;SPAN style="COLOR: blue"&gt;true&lt;/SPAN&gt;"&lt;SPAN style="COLOR: blue"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR: red"&gt;Enabled&lt;/SPAN&gt;&lt;SPAN style="COLOR: blue"&gt;=&lt;/SPAN&gt;"&lt;SPAN style="COLOR: blue"&gt;true&lt;/SPAN&gt;"&lt;SPAN style="COLOR: blue"&gt;&amp;gt; &lt;BR&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="FONT-FAMILY: consolas; COLOR: blue; FONT-SIZE: 9.5pt"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="FONT-FAMILY: consolas; COLOR: #a31515; FONT-SIZE: 9.5pt"&gt;FilterValues&lt;/SPAN&gt;&lt;SPAN style="FONT-FAMILY: consolas; COLOR: blue; FONT-SIZE: 9.5pt"&gt;&amp;gt; &lt;BR&gt;&lt;/SPAN&gt;&lt;SPAN style="FONT-FAMILY: consolas; COLOR: blue; FONT-SIZE: 9.5pt"&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;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="FONT-FAMILY: consolas; COLOR: #a31515; FONT-SIZE: 9.5pt"&gt;FilterValue&lt;/SPAN&gt;&lt;SPAN style="FONT-FAMILY: consolas; COLOR: blue; FONT-SIZE: 9.5pt"&gt; &lt;/SPAN&gt;&lt;SPAN style="FONT-FAMILY: consolas; COLOR: red; FONT-SIZE: 9.5pt"&gt;FilterDescriptorName&lt;/SPAN&gt;&lt;SPAN style="FONT-FAMILY: consolas; COLOR: blue; FONT-SIZE: 9.5pt"&gt;=&lt;/SPAN&gt;&lt;SPAN style="FONT-FAMILY: consolas; FONT-SIZE: 9.5pt"&gt;"&lt;SPAN style="COLOR: blue"&gt;MinCustomerId&lt;/SPAN&gt;"&lt;SPAN style="COLOR: blue"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR: red"&gt;FilterIndex&lt;/SPAN&gt;&lt;SPAN style="COLOR: blue"&gt;=&lt;/SPAN&gt;"&lt;SPAN style="COLOR: blue"&gt;0&lt;/SPAN&gt;" &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="COLOR: blue"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="COLOR: red"&gt;Type&lt;/SPAN&gt;&lt;SPAN style="COLOR: blue"&gt;=&lt;/SPAN&gt;"&lt;SPAN style="COLOR: blue"&gt;System.Int32&lt;/SPAN&gt;"&lt;SPAN style="COLOR: blue"&gt;&amp;gt;&lt;/SPAN&gt;11050&lt;SPAN style="COLOR: blue"&gt;&amp;lt;/&lt;/SPAN&gt;&lt;SPAN style="COLOR: #a31515"&gt;FilterValue&lt;/SPAN&gt;&lt;SPAN style="COLOR: blue"&gt;&amp;gt; &lt;BR&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="FONT-FAMILY: consolas; COLOR: blue; FONT-SIZE: 9.5pt"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&amp;lt;/&lt;/SPAN&gt;&lt;SPAN style="FONT-FAMILY: consolas; COLOR: #a31515; FONT-SIZE: 9.5pt"&gt;FilterValues&lt;/SPAN&gt;&lt;SPAN style="FONT-FAMILY: consolas; COLOR: blue; FONT-SIZE: 9.5pt"&gt;&amp;gt; &lt;BR&gt;&lt;/SPAN&gt;&lt;SPAN style="FONT-FAMILY: consolas; COLOR: blue; FONT-SIZE: 9.5pt"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&amp;lt;/&lt;/SPAN&gt;&lt;SPAN style="FONT-FAMILY: consolas; COLOR: #a31515; FONT-SIZE: 9.5pt"&gt;Query&lt;/SPAN&gt;&lt;SPAN style="FONT-FAMILY: consolas; COLOR: blue; FONT-SIZE: 9.5pt"&gt;&amp;gt; &lt;BR&gt;&lt;/SPAN&gt;&lt;SPAN style="FONT-FAMILY: consolas; COLOR: blue; FONT-SIZE: 9.5pt"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/SPAN&gt;&amp;lt;/&lt;/SPAN&gt;&lt;SPAN style="FONT-FAMILY: consolas; COLOR: #a31515; FONT-SIZE: 9.5pt"&gt;Queries&lt;/SPAN&gt;&lt;SPAN style="FONT-FAMILY: consolas; COLOR: blue; FONT-SIZE: 9.5pt"&gt;&amp;gt; &lt;BR&gt;&lt;/SPAN&gt;&lt;SPAN style="FONT-FAMILY: consolas; COLOR: blue; FONT-SIZE: 9.5pt"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/SPAN&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="FONT-FAMILY: consolas; COLOR: #a31515; FONT-SIZE: 9.5pt"&gt;Associations&lt;/SPAN&gt;&lt;SPAN style="FONT-FAMILY: consolas; COLOR: blue; FONT-SIZE: 9.5pt"&gt;&amp;gt; &lt;BR&gt;&lt;/SPAN&gt;&lt;SPAN style="FONT-FAMILY: consolas; COLOR: blue; FONT-SIZE: 9.5pt"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="FONT-FAMILY: consolas; COLOR: #a31515; FONT-SIZE: 9.5pt"&gt;Association&lt;/SPAN&gt;&lt;SPAN style="FONT-FAMILY: consolas; COLOR: blue; FONT-SIZE: 9.5pt"&gt; &lt;/SPAN&gt;&lt;SPAN style="FONT-FAMILY: consolas; COLOR: red; FONT-SIZE: 9.5pt"&gt;Name&lt;/SPAN&gt;&lt;SPAN style="FONT-FAMILY: consolas; COLOR: blue; FONT-SIZE: 9.5pt"&gt;=&lt;/SPAN&gt;&lt;SPAN style="FONT-FAMILY: consolas; FONT-SIZE: 9.5pt"&gt;"&lt;SPAN style="COLOR: blue"&gt;GetOrdersForCustomer&lt;/SPAN&gt;"&lt;SPAN style="COLOR: blue"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR: red"&gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MethodInstanceName&lt;/SPAN&gt;&lt;SPAN style="COLOR: blue"&gt;=&lt;/SPAN&gt;"&lt;SPAN style="COLOR: blue"&gt;GetOrdersForCustomer&lt;/SPAN&gt;"&lt;SPAN style="COLOR: blue"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR: red"&gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; TargetSubscriptionName&lt;/SPAN&gt;&lt;SPAN style="COLOR: blue"&gt;=&lt;/SPAN&gt;"&lt;SPAN style="COLOR: blue"&gt;AdventureWorksContosoOrderHeaderSubscription&lt;/SPAN&gt;"&lt;SPAN style="COLOR: blue"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR: red"&gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; TargetView&lt;/SPAN&gt;&lt;SPAN style="COLOR: blue"&gt;=&lt;/SPAN&gt;"&lt;SPAN style="COLOR: blue"&gt;GetSalesOrderHeaderById&lt;/SPAN&gt;" &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="COLOR: blue"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="COLOR: red"&gt;LobSystemInstanceName&lt;/SPAN&gt;&lt;SPAN style="COLOR: blue"&gt;=&lt;/SPAN&gt;"&lt;SPAN style="COLOR: blue"&gt;AdventureWorksContosoLOBInstance&lt;/SPAN&gt;" &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="COLOR: blue"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="COLOR: red"&gt;RefreshIntervalInMinutes&lt;/SPAN&gt;&lt;SPAN style="COLOR: blue"&gt;=&lt;/SPAN&gt;"&lt;SPAN style="COLOR: blue"&gt;60&lt;/SPAN&gt;"&lt;SPAN style="COLOR: blue"&gt;/&amp;gt; &lt;BR&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="FONT-FAMILY: consolas; COLOR: blue; FONT-SIZE: 9.5pt"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/SPAN&gt;&amp;lt;/&lt;/SPAN&gt;&lt;SPAN style="FONT-FAMILY: consolas; COLOR: #a31515; FONT-SIZE: 9.5pt"&gt;Associations&lt;/SPAN&gt;&lt;SPAN style="FONT-FAMILY: consolas; COLOR: blue; FONT-SIZE: 9.5pt"&gt;&amp;gt; &lt;BR&gt;&lt;/SPAN&gt;&lt;SPAN style="FONT-FAMILY: consolas; COLOR: blue; FONT-SIZE: 9.5pt"&gt;&amp;lt;/&lt;/SPAN&gt;&lt;SPAN style="FONT-FAMILY: consolas; COLOR: #a31515; FONT-SIZE: 9.5pt"&gt;Subscription&lt;/SPAN&gt;&lt;SPAN style="FONT-FAMILY: consolas; COLOR: blue; FONT-SIZE: 9.5pt"&gt;&amp;gt; &lt;/SPAN&gt;&lt;/P&gt;
&lt;P mce_keep="true"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P mce_keep="true"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P mce_keep="true"&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;
&lt;P&gt;This subscription will only download the specified customers, as you can see in the image below.&lt;/P&gt;
&lt;P&gt;&lt;A href="http://blogs.msdn.com/blogfiles/bcs/WindowsLiveWriter/HowdoIoptimizebackendsynchronization_EE33/image_4.png" mce_href="http://blogs.msdn.com/blogfiles/bcs/WindowsLiveWriter/HowdoIoptimizebackendsynchronization_EE33/image_4.png"&gt;&lt;IMG style="BORDER-RIGHT-WIDTH: 0px; DISPLAY: inline; BORDER-TOP-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px" title=image border=0 alt=image src="http://blogs.msdn.com/blogfiles/bcs/WindowsLiveWriter/HowdoIoptimizebackendsynchronization_EE33/image_thumb_1.png" width=544 height=420 mce_src="http://blogs.msdn.com/blogfiles/bcs/WindowsLiveWriter/HowdoIoptimizebackendsynchronization_EE33/image_thumb_1.png"&gt;&lt;/A&gt; &lt;/P&gt;
&lt;P&gt;The filters used by the subscription file have to be defined on the model, and the external system needs to support them, too. The model for the &lt;B&gt;Contoso Sales Manager&lt;/B&gt; solution and the AdventureWorks web service used by the solution were updated to support a comparison filter on the CustomerID field. The updated solution can be found in the &lt;A href="http://blogs.msdn.com/bcs/attachment/10009437.ashx" mce_href="http://blogs.msdn.com/bcs/attachment/10009437.ashx"&gt;package attached to this post&lt;/A&gt;.&lt;/P&gt;
&lt;P mce_keep="true"&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV style="BORDER-BOTTOM: windowtext 1pt solid; BORDER-LEFT: windowtext 1pt solid; PADDING-BOTTOM: 1pt; PADDING-LEFT: 4pt; PADDING-RIGHT: 4pt; BACKGROUND: #eaf1dd; BORDER-TOP: windowtext 1pt solid; BORDER-RIGHT: windowtext 1pt solid; PADDING-TOP: 1pt; mso-element: para-border-div; mso-border-alt: solid windowtext .5pt; mso-background-themecolor: accent3; mso-background-themetint: 51"&gt;
&lt;P style="BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; PADDING-BOTTOM: 0in; PADDING-LEFT: 0in; PADDING-RIGHT: 0in; BACKGROUND: #eaf1dd; BORDER-TOP: medium none; BORDER-RIGHT: medium none; PADDING-TOP: 0in; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; mso-background-themecolor: accent3; mso-background-themetint: 51" class=MsoNormal&gt;&lt;B style="mso-bidi-font-weight: normal"&gt;NOTE: &lt;/B&gt;The version number of the Customer external content type was increased on the updated solution. When editing the model manually, this is an important step to make sure our changes are not ignored during deployment. &lt;/P&gt;
&lt;P mce_keep="true"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P mce_keep="true"&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;
&lt;H4&gt;&lt;B&gt;Recommended reading&lt;/B&gt;&lt;/H4&gt;
&lt;P&gt;To learn more about BCS client cache, navigate to &lt;A href="http://msdn.microsoft.com/en-us/library/ee556385%28office.14%29.aspx" mce_href="http://msdn.microsoft.com/en-us/library/ee556385%28office.14%29.aspx"&gt;&lt;B&gt;Understanding Business Connectivity Services Client Cache to Optimize Your Solutions&lt;/B&gt;&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;For more information on how to bring external data to Office client applications go to: &lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;A href="http://blogs.msdn.com/bcs/archive/2009/12/04/bcs-team-channel-external-lists-in-outlook.aspx" mce_href="http://blogs.msdn.com/bcs/archive/2009/12/04/bcs-team-channel-external-lists-in-outlook.aspx"&gt;&lt;B&gt;BCS Team Channel: External Lists in Outlook&lt;/B&gt;&lt;/A&gt; &lt;/LI&gt;
&lt;LI&gt;&lt;A href="http://blogs.msdn.com/bcs/archive/2009/12/10/external-lists-in-sharepoint-workspace.aspx" mce_href="http://blogs.msdn.com/bcs/archive/2009/12/10/external-lists-in-sharepoint-workspace.aspx"&gt;&lt;B&gt;External Lists in SharePoint Workspace&lt;/B&gt;&lt;/A&gt; &lt;/LI&gt;
&lt;LI&gt;&lt;A href="http://blogs.msdn.com/bcs/archive/2009/12/14/bcs-team-channel-external-data-in-sharepoint-workspace.aspx" mce_href="http://blogs.msdn.com/bcs/archive/2009/12/14/bcs-team-channel-external-data-in-sharepoint-workspace.aspx"&gt;&lt;B&gt;BCS Team Channel: External Data in SharePoint Workspace&lt;/B&gt;&lt;/A&gt;. &lt;/LI&gt;&lt;/UL&gt;
&lt;P&gt;For more information on subscriptions and subscription files, see &lt;A href="http://msdn.microsoft.com/en-us/library/ee558389%28v=office.14%29.aspx" mce_href="http://msdn.microsoft.com/en-us/library/ee558389%28v=office.14%29.aspx"&gt;&lt;B&gt;What Is a Cache Subscription?&lt;/B&gt;&lt;/A&gt;.&lt;/P&gt;
&lt;H4&gt;&lt;B&gt;Is that all?&lt;/B&gt;&lt;/H4&gt;
&lt;P&gt;Limiting the amount of data downloaded by the client is not always an option. For those cases, version field, Bulk Stereotypes and Last Id Seen filter are a great option. They will be covered in an upcoming post.&lt;/P&gt;
&lt;P&gt;- Rodrigo Silveira.&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10009437" width="1" height="1"&gt;</description><enclosure url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-components-postattachments/00-10-00-94-37/ContosoSalesManager-Filtered.zip" length="422819" type="application/x-zip-compressed" /></item><item><title>How do I leverage Secure Store from within my .Net Connectivity Assembly?</title><link>http://blogs.msdn.com/b/bcs/archive/2010/05/11/how-do-i-leverage-secure-store-from-within-my-net-connectivity-assembly.aspx</link><pubDate>Tue, 11 May 2010 15:00:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10009379</guid><dc:creator>lionelro</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blogs.msdn.com/b/bcs/rsscomments.aspx?WeblogPostID=10009379</wfw:commentRss><comments>http://blogs.msdn.com/b/bcs/archive/2010/05/11/how-do-i-leverage-secure-store-from-within-my-net-connectivity-assembly.aspx#comments</comments><description>&lt;p&gt;With Database, Web Service and WCF connectors, there is one and only one external system. BCS understands how to connect to these external systems, and it supports Secure Store integration out-of-box for these connectors. Within a .NET assembly connector, the .NET assembly code can use zero, one or many external systems. Since BCS does not know what the .NET assembly code does, it does not support Secure Store integration out of box for the .NET assembly connector.&lt;/p&gt;  &lt;p&gt;Even though BCS does not have OOB support for Secure Store in .NET assembly connector, it provides two different mechanisms to leverage Secure Store within a .NET connectivity assembly. In the first mechanism (no-code approach) BCS does the heavy lifting of reading the credentials from secure store whereas in the second mechanism (code approach) .NET connectivity assembly needs to do the heavy lifting.&lt;/p&gt;  &lt;p&gt;This blog explains how both approaches are used.&lt;/p&gt;  &lt;h4&gt;No-code approach&lt;/h4&gt;  &lt;p&gt;As the name suggests, your .NET connectivity assembly does not directly interact with Secure Store. Using filters, it can utilize BCS to read the credentials from Secure Store and get the credentials as input parameters to the method. This approach is not unique to .NET assembly connector and can be used with Database, Web Service and WCF connectors.&lt;/p&gt;  &lt;p&gt;When writing the method in .NET connectivity assembly, you will need to have input parameters for credentials. The following example shows “GetEntity” method with input parameters for username and password along with other parameters.&lt;/p&gt;  &lt;p style="line-height: normal; margin-bottom: 0pt; mso-layout-grid-align: none" class="MsoNormal"&gt;&lt;span style="font-family: &amp;#39;Courier New&amp;#39;; color: blue; font-size: 10pt; mso-no-proof: yes"&gt;public&lt;/span&gt;&lt;span style="font-family: &amp;#39;Courier New&amp;#39;; font-size: 10pt; mso-no-proof: yes"&gt; SampleEntity GetEntity(&lt;span style="color: blue"&gt;string&lt;/span&gt; username, &lt;span style="color: blue"&gt;string&lt;/span&gt; password, &lt;span style="color: blue"&gt;int&lt;/span&gt; id)&lt;/span&gt;&lt;span style="font-family: &amp;#39;Courier New&amp;#39;; font-size: 10pt; mso-no-proof: yes"&gt;{      &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;span style="font-family: &amp;#39;Courier New&amp;#39;; color: green; font-size: 10pt; mso-no-proof: yes"&gt;// parameters username and password      &lt;br /&gt;&lt;/span&gt;&lt;span style="font-family: &amp;#39;Courier New&amp;#39;; font-size: 10pt; mso-no-proof: yes"&gt;&lt;span style="color: green"&gt;&amp;#160;&amp;#160;&amp;#160; // contains the credentials&lt;span style="mso-spacerun: yes"&gt;&amp;#160;&amp;#160; &lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: &amp;#39;Courier New&amp;#39;; font-size: 10pt; mso-no-proof: yes"&gt;} &lt;/span&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;To get the credentials in the username and password parameters, you will need to use filters UsernameFilter and PasswordFilter. In the metadata model, you will need to define the properties “SecondarySsoApplicationId” and “SsoProviderImplementation” for LobSystemInstance and associate the filters to appropriate input parameter of the method. When BCS encounters filters, it uses the properties “SecondarySsoApplicationId” and “SsoProviderImplementation” for secure store target application id and secure store provider.&lt;/p&gt;  &lt;p style="line-height: normal; margin-bottom: 0pt; mso-layout-grid-align: none" class="MsoNormal"&gt;&lt;span style="font-family: &amp;#39;Courier New&amp;#39;; color: blue; font-size: 10pt; mso-no-proof: yes"&gt;&amp;lt;&lt;/span&gt;&lt;span style="font-family: &amp;#39;Courier New&amp;#39;; color: #a31515; font-size: 10pt; mso-no-proof: yes"&gt;LobSystemInstance&lt;/span&gt;&lt;span style="font-family: &amp;#39;Courier New&amp;#39;; color: blue; font-size: 10pt; mso-no-proof: yes"&gt; &lt;/span&gt;&lt;span style="font-family: &amp;#39;Courier New&amp;#39;; color: red; font-size: 10pt; mso-no-proof: yes"&gt;...&lt;/span&gt;&lt;span style="font-family: &amp;#39;Courier New&amp;#39;; color: blue; font-size: 10pt; mso-no-proof: yes"&gt;&amp;gt;      &lt;br /&gt;&lt;/span&gt;&lt;span style="font-family: &amp;#39;Courier New&amp;#39;; color: blue; font-size: 10pt; mso-no-proof: yes"&gt;&lt;span style="mso-spacerun: yes"&gt;&amp;#160; &lt;/span&gt;&amp;lt;&lt;/span&gt;&lt;span style="font-family: &amp;#39;Courier New&amp;#39;; color: #a31515; font-size: 10pt; mso-no-proof: yes"&gt;Properties&lt;/span&gt;&lt;span style="font-family: &amp;#39;Courier New&amp;#39;; color: blue; font-size: 10pt; mso-no-proof: yes"&gt;&amp;gt;      &lt;br /&gt;&lt;/span&gt;&lt;span style="font-family: &amp;#39;Courier New&amp;#39;; color: blue; font-size: 10pt; mso-no-proof: yes"&gt;&lt;span style="mso-spacerun: yes"&gt;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&amp;lt;!--&lt;/span&gt;&lt;span style="font-family: &amp;#39;Courier New&amp;#39;; color: green; font-size: 10pt; mso-no-proof: yes"&gt; other properties omitted –&lt;/span&gt;&lt;span style="font-family: &amp;#39;Courier New&amp;#39;; color: blue; font-size: 10pt; mso-no-proof: yes"&gt;&amp;gt;      &lt;br /&gt;&lt;/span&gt;&lt;span style="font-family: &amp;#39;Courier New&amp;#39;; color: blue; font-size: 10pt; mso-no-proof: yes"&gt;&lt;span style="mso-spacerun: yes"&gt;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&amp;lt;&lt;/span&gt;&lt;span style="font-family: &amp;#39;Courier New&amp;#39;; color: #a31515; font-size: 10pt; mso-no-proof: yes"&gt;Property&lt;/span&gt;&lt;span style="font-family: &amp;#39;Courier New&amp;#39;; color: blue; font-size: 10pt; mso-no-proof: yes"&gt; &lt;/span&gt;&lt;span style="font-family: &amp;#39;Courier New&amp;#39;; color: red; font-size: 10pt; mso-no-proof: yes"&gt;Name&lt;/span&gt;&lt;span style="font-family: &amp;#39;Courier New&amp;#39;; color: blue; font-size: 10pt; mso-no-proof: yes"&gt;=&lt;/span&gt;&lt;span style="font-family: &amp;#39;Courier New&amp;#39;; font-size: 10pt; mso-no-proof: yes"&gt;&amp;quot;&lt;span style="color: blue"&gt;SecondarySsoApplicationId&lt;/span&gt;&amp;quot;      &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;span style="color: red"&gt;Type&lt;/span&gt;&lt;span style="color: blue"&gt;=&lt;/span&gt;&amp;quot;&lt;span style="color: blue"&gt;System.String&lt;/span&gt;&amp;quot;&lt;span style="color: blue"&gt;&amp;gt;&lt;/span&gt;MyLobAppId&lt;span style="color: blue"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color: #a31515"&gt;Property&lt;/span&gt;&lt;span style="color: blue"&gt;&amp;gt;        &lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: &amp;#39;Courier New&amp;#39;; color: blue; font-size: 10pt; mso-no-proof: yes"&gt;&lt;span style="mso-spacerun: yes"&gt;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&amp;lt;&lt;/span&gt;&lt;span style="font-family: &amp;#39;Courier New&amp;#39;; color: #a31515; font-size: 10pt; mso-no-proof: yes"&gt;Property&lt;/span&gt;&lt;span style="font-family: &amp;#39;Courier New&amp;#39;; color: blue; font-size: 10pt; mso-no-proof: yes"&gt; &lt;/span&gt;&lt;span style="font-family: &amp;#39;Courier New&amp;#39;; color: red; font-size: 10pt; mso-no-proof: yes"&gt;Name&lt;/span&gt;&lt;span style="font-family: &amp;#39;Courier New&amp;#39;; color: blue; font-size: 10pt; mso-no-proof: yes"&gt;=&lt;/span&gt;&lt;span style="font-family: &amp;#39;Courier New&amp;#39;; font-size: 10pt; mso-no-proof: yes"&gt;&amp;quot;&lt;span style="color: blue"&gt;SsoProviderImplementation&lt;/span&gt;&amp;quot;&lt;span style="color: blue"&gt; &lt;/span&gt;&lt;span style="color: red"&gt;Type&lt;/span&gt;&lt;span style="color: blue"&gt;=&lt;/span&gt;&amp;quot;&lt;span style="color: blue"&gt;System.String&lt;/span&gt;&amp;quot;&lt;span style="color: blue"&gt;&amp;gt;       &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;Microsoft.Office.SecureStoreService.Server.SecureStoreProvider, Microsoft.Office.SecureStoreService, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c&lt;span style="color: blue"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color: #a31515"&gt;Property&lt;/span&gt;&lt;span style="color: blue"&gt;&amp;gt;        &lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: &amp;#39;Courier New&amp;#39;; color: blue; font-size: 10pt; mso-no-proof: yes"&gt;&lt;span style="mso-spacerun: yes"&gt;&amp;#160; &lt;/span&gt;&amp;lt;/&lt;/span&gt;&lt;span style="font-family: &amp;#39;Courier New&amp;#39;; color: #a31515; font-size: 10pt; mso-no-proof: yes"&gt;Properties&lt;/span&gt;&lt;span style="font-family: &amp;#39;Courier New&amp;#39;; color: blue; font-size: 10pt; mso-no-proof: yes"&gt;&amp;gt;      &lt;br /&gt;&lt;/span&gt;&lt;span style="font-family: &amp;#39;Courier New&amp;#39;; color: blue; font-size: 10pt; mso-no-proof: yes"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="font-family: &amp;#39;Courier New&amp;#39;; color: #a31515; font-size: 10pt; mso-no-proof: yes"&gt;LobSystemInstance&lt;/span&gt;&lt;span style="font-family: &amp;#39;Courier New&amp;#39;; color: blue; font-size: 10pt; mso-no-proof: yes"&gt;&amp;gt; &lt;/span&gt;&lt;/p&gt;  &lt;p mce_keep="true"&gt;Now let’s define the two filters for the method.&lt;/p&gt;  &lt;p class="MsoNoSpacing"&gt;&lt;span style="font-family: &amp;#39;Courier New&amp;#39;; font-size: 9pt"&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p mce_keep="true"&gt;&lt;span style="font-family: &amp;#39;Courier New&amp;#39;; color: blue; font-size: 10pt; mso-no-proof: yes"&gt;&amp;lt;&lt;/span&gt;&lt;span style="font-family: &amp;#39;Courier New&amp;#39;; color: #a31515; font-size: 10pt; mso-no-proof: yes"&gt;Method&lt;/span&gt;&lt;span style="font-family: &amp;#39;Courier New&amp;#39;; color: blue; font-size: 10pt; mso-no-proof: yes"&gt; &lt;/span&gt;&lt;span style="font-family: &amp;#39;Courier New&amp;#39;; color: red; font-size: 10pt; mso-no-proof: yes"&gt;Name&lt;/span&gt;&lt;span style="font-family: &amp;#39;Courier New&amp;#39;; color: blue; font-size: 10pt; mso-no-proof: yes"&gt;=&lt;/span&gt;&lt;span style="font-family: &amp;#39;Courier New&amp;#39;; font-size: 10pt; mso-no-proof: yes"&gt;&amp;quot;&lt;span style="color: blue"&gt;GetEntity&lt;/span&gt;&amp;quot;&lt;span style="color: blue"&gt;&amp;gt;        &lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: &amp;#39;Courier New&amp;#39;; color: blue; font-size: 10pt; mso-no-proof: yes"&gt;&lt;span style="mso-spacerun: yes"&gt;&amp;#160; &lt;/span&gt;&amp;lt;&lt;/span&gt;&lt;span style="font-family: &amp;#39;Courier New&amp;#39;; color: #a31515; font-size: 10pt; mso-no-proof: yes"&gt;FilterDescriptors&lt;/span&gt;&lt;span style="font-family: &amp;#39;Courier New&amp;#39;; color: blue; font-size: 10pt; mso-no-proof: yes"&gt;&amp;gt;      &lt;br /&gt;&lt;/span&gt;&lt;span style="font-family: &amp;#39;Courier New&amp;#39;; color: blue; font-size: 10pt; mso-no-proof: yes"&gt;&lt;span style="mso-spacerun: yes"&gt;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&amp;lt;&lt;/span&gt;&lt;span style="font-family: &amp;#39;Courier New&amp;#39;; color: #a31515; font-size: 10pt; mso-no-proof: yes"&gt;FilterDescriptor&lt;/span&gt;&lt;span style="font-family: &amp;#39;Courier New&amp;#39;; color: blue; font-size: 10pt; mso-no-proof: yes"&gt; &lt;/span&gt;&lt;span style="font-family: &amp;#39;Courier New&amp;#39;; color: red; font-size: 10pt; mso-no-proof: yes"&gt;Type&lt;/span&gt;&lt;span style="font-family: &amp;#39;Courier New&amp;#39;; color: blue; font-size: 10pt; mso-no-proof: yes"&gt;=&lt;/span&gt;&lt;span style="font-family: &amp;#39;Courier New&amp;#39;; font-size: 10pt; mso-no-proof: yes"&gt;&amp;quot;&lt;span style="color: blue"&gt;Username&lt;/span&gt;&amp;quot;&lt;span style="color: blue"&gt; &lt;/span&gt;&lt;span style="color: red"&gt;Name&lt;/span&gt;&lt;span style="color: blue"&gt;=&lt;/span&gt;&amp;quot;&lt;span style="color: blue"&gt;UserNameFilter&lt;/span&gt;&amp;quot;&lt;span style="color: blue"&gt;/&amp;gt;        &lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: &amp;#39;Courier New&amp;#39;; color: blue; font-size: 10pt; mso-no-proof: yes"&gt;&lt;span style="mso-spacerun: yes"&gt;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&amp;lt;&lt;/span&gt;&lt;span style="font-family: &amp;#39;Courier New&amp;#39;; color: #a31515; font-size: 10pt; mso-no-proof: yes"&gt;FilterDescriptor&lt;/span&gt;&lt;span style="font-family: &amp;#39;Courier New&amp;#39;; color: blue; font-size: 10pt; mso-no-proof: yes"&gt; &lt;/span&gt;&lt;span style="font-family: &amp;#39;Courier New&amp;#39;; color: red; font-size: 10pt; mso-no-proof: yes"&gt;Type&lt;/span&gt;&lt;span style="font-family: &amp;#39;Courier New&amp;#39;; color: blue; font-size: 10pt; mso-no-proof: yes"&gt;=&lt;/span&gt;&lt;span style="font-family: &amp;#39;Courier New&amp;#39;; font-size: 10pt; mso-no-proof: yes"&gt;&amp;quot;&lt;span style="color: blue"&gt;Password&lt;/span&gt;&amp;quot;&lt;span style="color: blue"&gt; &lt;/span&gt;&lt;span style="color: red"&gt;Name&lt;/span&gt;&lt;span style="color: blue"&gt;=&lt;/span&gt;&amp;quot;&lt;span style="color: blue"&gt;PasswordFilter&lt;/span&gt;&amp;quot;&lt;span style="color: blue"&gt;/&amp;gt;        &lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: &amp;#39;Courier New&amp;#39;; color: blue; font-size: 10pt; mso-no-proof: yes"&gt;&lt;span style="mso-spacerun: yes"&gt;&amp;#160; &lt;/span&gt;&amp;lt;/&lt;/span&gt;&lt;span style="font-family: &amp;#39;Courier New&amp;#39;; color: #a31515; font-size: 10pt; mso-no-proof: yes"&gt;FilterDescriptors&lt;/span&gt;&lt;span style="font-family: &amp;#39;Courier New&amp;#39;; color: blue; font-size: 10pt; mso-no-proof: yes"&gt;&amp;gt;      &lt;br /&gt;&lt;/span&gt;&lt;span style="font-family: &amp;#39;Courier New&amp;#39;; color: blue; font-size: 10pt; mso-no-proof: yes"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="font-family: &amp;#39;Courier New&amp;#39;; color: #a31515; font-size: 10pt; mso-no-proof: yes"&gt;Method&lt;/span&gt;&lt;span style="font-family: &amp;#39;Courier New&amp;#39;; color: blue; font-size: 10pt; mso-no-proof: yes"&gt;&amp;gt; &lt;/span&gt;&lt;/p&gt;  &lt;p mce_keep="true"&gt;With the filters defined for the method, the following snippet shows how to associate the two filters to the input parameters of the method.&lt;/p&gt;  &lt;p style="line-height: normal; margin-bottom: 0pt; mso-layout-grid-align: none" class="MsoNormal"&gt;&lt;span style="font-family: &amp;#39;Courier New&amp;#39;; color: blue; font-size: 10pt; mso-no-proof: yes"&gt;&amp;lt;&lt;/span&gt;&lt;span style="font-family: &amp;#39;Courier New&amp;#39;; color: #a31515; font-size: 10pt; mso-no-proof: yes"&gt;Parameter&lt;/span&gt;&lt;span style="font-family: &amp;#39;Courier New&amp;#39;; color: blue; font-size: 10pt; mso-no-proof: yes"&gt; &lt;/span&gt;&lt;span style="font-family: &amp;#39;Courier New&amp;#39;; color: red; font-size: 10pt; mso-no-proof: yes"&gt;Direction&lt;/span&gt;&lt;span style="font-family: &amp;#39;Courier New&amp;#39;; color: blue; font-size: 10pt; mso-no-proof: yes"&gt;=&lt;/span&gt;&lt;span style="font-family: &amp;#39;Courier New&amp;#39;; font-size: 10pt; mso-no-proof: yes"&gt;&amp;quot;&lt;span style="color: blue"&gt;In&lt;/span&gt;&amp;quot;&lt;span style="color: blue"&gt; &lt;/span&gt;&lt;span style="color: red"&gt;Name&lt;/span&gt;&lt;span style="color: blue"&gt;=&lt;/span&gt;&amp;quot;&lt;span style="color: blue"&gt;username&lt;/span&gt;&amp;quot;&lt;span style="color: blue"&gt;&amp;gt;&amp;#160; &lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: &amp;#39;Courier New&amp;#39;; color: blue; font-size: 10pt; mso-no-proof: yes"&gt;&amp;#160;&amp;#160;&amp;#160; &amp;lt;&lt;/span&gt;&lt;span style="font-family: &amp;#39;Courier New&amp;#39;; color: #a31515; font-size: 10pt; mso-no-proof: yes"&gt;TypeDescriptor&lt;/span&gt;&lt;span style="font-family: &amp;#39;Courier New&amp;#39;; color: blue; font-size: 10pt; mso-no-proof: yes"&gt; &lt;/span&gt;&lt;span style="font-family: &amp;#39;Courier New&amp;#39;; color: red; font-size: 10pt; mso-no-proof: yes"&gt;TypeName&lt;/span&gt;&lt;span style="font-family: &amp;#39;Courier New&amp;#39;; color: blue; font-size: 10pt; mso-no-proof: yes"&gt;=&lt;/span&gt;&lt;span style="font-family: &amp;#39;Courier New&amp;#39;; font-size: 10pt; mso-no-proof: yes"&gt;&amp;quot;&lt;span style="color: blue"&gt;System.String&lt;/span&gt;&amp;quot;&lt;span style="color: blue"&gt; &lt;/span&gt;&lt;span style="color: red"&gt;Name&lt;/span&gt;&lt;span style="color: blue"&gt;=&lt;/span&gt;&amp;quot;&lt;span style="color: blue"&gt;username&lt;/span&gt;&amp;quot;      &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;span style="color: red"&gt;AssociatedFilter&lt;/span&gt;&lt;span style="color: blue"&gt;=&lt;/span&gt;&amp;quot;&lt;span style="color: blue"&gt;UserNameFilter&lt;/span&gt;&amp;quot;&lt;span style="color: blue"&gt;/&amp;gt;        &lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: &amp;#39;Courier New&amp;#39;; color: blue; font-size: 10pt; mso-no-proof: yes"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="font-family: &amp;#39;Courier New&amp;#39;; color: #a31515; font-size: 10pt; mso-no-proof: yes"&gt;Parameter&lt;/span&gt;&lt;span style="font-family: &amp;#39;Courier New&amp;#39;; color: blue; font-size: 10pt; mso-no-proof: yes"&gt;&amp;gt;      &lt;br /&gt;&lt;/span&gt;&lt;span style="font-family: &amp;#39;Courier New&amp;#39;; color: blue; font-size: 10pt; mso-no-proof: yes"&gt;&amp;lt;&lt;/span&gt;&lt;span style="font-family: &amp;#39;Courier New&amp;#39;; color: #a31515; font-size: 10pt; mso-no-proof: yes"&gt;Parameter&lt;/span&gt;&lt;span style="font-family: &amp;#39;Courier New&amp;#39;; color: blue; font-size: 10pt; mso-no-proof: yes"&gt; &lt;/span&gt;&lt;span style="font-family: &amp;#39;Courier New&amp;#39;; color: red; font-size: 10pt; mso-no-proof: yes"&gt;Direction&lt;/span&gt;&lt;span style="font-family: &amp;#39;Courier New&amp;#39;; color: blue; font-size: 10pt; mso-no-proof: yes"&gt;=&lt;/span&gt;&lt;span style="font-family: &amp;#39;Courier New&amp;#39;; font-size: 10pt; mso-no-proof: yes"&gt;&amp;quot;&lt;span style="color: blue"&gt;In&lt;/span&gt;&amp;quot;&lt;span style="color: blue"&gt; &lt;/span&gt;&lt;span style="color: red"&gt;Name&lt;/span&gt;&lt;span style="color: blue"&gt;=&lt;/span&gt;&amp;quot;&lt;span style="color: blue"&gt;password&lt;/span&gt;&amp;quot;&lt;span style="color: blue"&gt;&amp;gt;&amp;#160; &lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: &amp;#39;Courier New&amp;#39;; color: blue; font-size: 10pt; mso-no-proof: yes"&gt;&amp;#160;&amp;#160;&amp;#160; &amp;lt;&lt;/span&gt;&lt;span style="font-family: &amp;#39;Courier New&amp;#39;; color: #a31515; font-size: 10pt; mso-no-proof: yes"&gt;TypeDescriptor&lt;/span&gt;&lt;span style="font-family: &amp;#39;Courier New&amp;#39;; color: blue; font-size: 10pt; mso-no-proof: yes"&gt; &lt;/span&gt;&lt;span style="font-family: &amp;#39;Courier New&amp;#39;; color: red; font-size: 10pt; mso-no-proof: yes"&gt;TypeName&lt;/span&gt;&lt;span style="font-family: &amp;#39;Courier New&amp;#39;; color: blue; font-size: 10pt; mso-no-proof: yes"&gt;=&lt;/span&gt;&lt;span style="font-family: &amp;#39;Courier New&amp;#39;; font-size: 10pt; mso-no-proof: yes"&gt;&amp;quot;&lt;span style="color: blue"&gt;System.String&lt;/span&gt;&amp;quot;&lt;span style="color: blue"&gt; &lt;/span&gt;&lt;span style="color: red"&gt;Name&lt;/span&gt;&lt;span style="color: blue"&gt;=&lt;/span&gt;&amp;quot;&lt;span style="color: blue"&gt;password&lt;/span&gt;&amp;quot;      &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;span style="color: red"&gt;AssociatedFilter&lt;/span&gt;&lt;span style="color: blue"&gt;=&lt;/span&gt;&amp;quot;&lt;span style="color: blue"&gt;PasswordFilter&lt;/span&gt;&amp;quot;&lt;span style="color: blue"&gt;/&amp;gt;        &lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: &amp;#39;Courier New&amp;#39;; color: blue; font-size: 10pt; mso-no-proof: yes"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="font-family: &amp;#39;Courier New&amp;#39;; color: #a31515; font-size: 10pt; mso-no-proof: yes"&gt;Parameter&lt;/span&gt;&lt;span style="font-family: &amp;#39;Courier New&amp;#39;; color: blue; font-size: 10pt; mso-no-proof: yes"&gt;&amp;gt; &lt;/span&gt;&lt;/p&gt;  &lt;p mce_keep="true"&gt; That’s all you will need to leverage secure store in .NET connectivity assembly. When BCS executes the method, it will read the credentials from the secure store and set the credentials in the input parameters of the method.&lt;/p&gt;  &lt;h4&gt;Code-approach&lt;/h4&gt;  &lt;p&gt;Before we start writing code for leveraging Secure Store, let’s take a look at how BCS leverages Secure Store in other connectors. Other connectors in BCS rely on the metadata model to provide them information about Secure Store and the target application id where the credentials can be retrieved from for authenticating with the external system. For example, in the case of the Database connector, the properties for &lt;i&gt;LobSystemInstance&lt;/i&gt; in the metadata model look like this:&lt;/p&gt;  &lt;p style="line-height: normal; margin-bottom: 0pt; mso-layout-grid-align: none" class="MsoNormal"&gt;&lt;span style="font-family: &amp;#39;Courier New&amp;#39;; color: blue; font-size: 10pt; mso-no-proof: yes"&gt;&amp;lt;&lt;/span&gt;&lt;span style="font-family: &amp;#39;Courier New&amp;#39;; color: #a31515; font-size: 10pt; mso-no-proof: yes"&gt;LobSystemInstance&lt;/span&gt;&lt;span style="font-family: &amp;#39;Courier New&amp;#39;; color: blue; font-size: 10pt; mso-no-proof: yes"&gt; &lt;/span&gt;&lt;span style="font-family: &amp;#39;Courier New&amp;#39;; color: red; font-size: 10pt; mso-no-proof: yes"&gt;...&lt;/span&gt;&lt;span style="font-family: &amp;#39;Courier New&amp;#39;; color: blue; font-size: 10pt; mso-no-proof: yes"&gt;&amp;gt;      &lt;br /&gt;&lt;/span&gt;&lt;span style="font-family: &amp;#39;Courier New&amp;#39;; color: blue; font-size: 10pt; mso-no-proof: yes"&gt;&lt;span style="mso-spacerun: yes"&gt;&amp;#160; &lt;/span&gt;&amp;lt;&lt;/span&gt;&lt;span style="font-family: &amp;#39;Courier New&amp;#39;; color: #a31515; font-size: 10pt; mso-no-proof: yes"&gt;Properties&lt;/span&gt;&lt;span style="font-family: &amp;#39;Courier New&amp;#39;; color: blue; font-size: 10pt; mso-no-proof: yes"&gt;&amp;gt;      &lt;br /&gt;&lt;/span&gt;&lt;span style="font-family: &amp;#39;Courier New&amp;#39;; color: blue; font-size: 10pt; mso-no-proof: yes"&gt;&lt;span style="mso-spacerun: yes"&gt;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&amp;lt;!--&lt;/span&gt;&lt;span style="font-family: &amp;#39;Courier New&amp;#39;; color: green; font-size: 10pt; mso-no-proof: yes"&gt; other properties omitted –&lt;/span&gt;&lt;span style="font-family: &amp;#39;Courier New&amp;#39;; color: blue; font-size: 10pt; mso-no-proof: yes"&gt;&amp;gt;      &lt;br /&gt;&lt;/span&gt;&lt;span style="font-family: &amp;#39;Courier New&amp;#39;; color: blue; font-size: 10pt; mso-no-proof: yes"&gt;&lt;span style="mso-spacerun: yes"&gt;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&amp;lt;&lt;/span&gt;&lt;span style="font-family: &amp;#39;Courier New&amp;#39;; color: #a31515; font-size: 10pt; mso-no-proof: yes"&gt;Property&lt;/span&gt;&lt;span style="font-family: &amp;#39;Courier New&amp;#39;; color: blue; font-size: 10pt; mso-no-proof: yes"&gt; &lt;/span&gt;&lt;span style="font-family: &amp;#39;Courier New&amp;#39;; color: red; font-size: 10pt; mso-no-proof: yes"&gt;Name&lt;/span&gt;&lt;span style="font-family: &amp;#39;Courier New&amp;#39;; color: blue; font-size: 10pt; mso-no-proof: yes"&gt;=&lt;/span&gt;&lt;span style="font-family: &amp;#39;Courier New&amp;#39;; font-size: 10pt; mso-no-proof: yes"&gt;&amp;quot;&lt;span style="color: blue"&gt;SsoApplicationId&lt;/span&gt;&amp;quot;      &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;span style="color: red"&gt;Type&lt;/span&gt;&lt;span style="color: blue"&gt;=&lt;/span&gt;&amp;quot;&lt;span style="color: blue"&gt;System.String&lt;/span&gt;&amp;quot;&lt;span style="color: blue"&gt;&amp;gt;&lt;/span&gt;MyLobAppId&lt;span style="color: blue"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color: #a31515"&gt;Property&lt;/span&gt;&lt;span style="color: blue"&gt;&amp;gt;        &lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: &amp;#39;Courier New&amp;#39;; color: blue; font-size: 10pt; mso-no-proof: yes"&gt;&lt;span style="mso-spacerun: yes"&gt;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&amp;lt;&lt;/span&gt;&lt;span style="font-family: &amp;#39;Courier New&amp;#39;; color: #a31515; font-size: 10pt; mso-no-proof: yes"&gt;Property&lt;/span&gt;&lt;span style="font-family: &amp;#39;Courier New&amp;#39;; color: blue; font-size: 10pt; mso-no-proof: yes"&gt; &lt;/span&gt;&lt;span style="font-family: &amp;#39;Courier New&amp;#39;; color: red; font-size: 10pt; mso-no-proof: yes"&gt;Name&lt;/span&gt;&lt;span style="font-family: &amp;#39;Courier New&amp;#39;; color: blue; font-size: 10pt; mso-no-proof: yes"&gt;=&lt;/span&gt;&lt;span style="font-family: &amp;#39;Courier New&amp;#39;; font-size: 10pt; mso-no-proof: yes"&gt;&amp;quot;&lt;span style="color: blue"&gt;SsoProviderImplementation&lt;/span&gt;&amp;quot;&lt;span style="color: blue"&gt; &lt;/span&gt;&lt;span style="color: red"&gt;Type&lt;/span&gt;&lt;span style="color: blue"&gt;=&lt;/span&gt;&amp;quot;&lt;span style="color: blue"&gt;System.String&lt;/span&gt;&amp;quot;&lt;span style="color: blue"&gt;&amp;gt; &lt;/span&gt;Microsoft.Office.SecureStoreService.Server.SecureStoreProvider, Microsoft.Office.SecureStoreService, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c&lt;span style="color: blue"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color: #a31515"&gt;Property&lt;/span&gt;&lt;span style="color: blue"&gt;&amp;gt;        &lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: &amp;#39;Courier New&amp;#39;; color: blue; font-size: 10pt; mso-no-proof: yes"&gt;&lt;span style="mso-spacerun: yes"&gt;&amp;#160; &lt;/span&gt;&amp;lt;/&lt;/span&gt;&lt;span style="font-family: &amp;#39;Courier New&amp;#39;; color: #a31515; font-size: 10pt; mso-no-proof: yes"&gt;Properties&lt;/span&gt;&lt;span style="font-family: &amp;#39;Courier New&amp;#39;; color: blue; font-size: 10pt; mso-no-proof: yes"&gt;&amp;gt;      &lt;br /&gt;&lt;/span&gt;&lt;span style="font-family: &amp;#39;Courier New&amp;#39;; color: blue; font-size: 10pt; mso-no-proof: yes"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="font-family: &amp;#39;Courier New&amp;#39;; color: #a31515; font-size: 10pt; mso-no-proof: yes"&gt;LobSystemInstance&lt;/span&gt;&lt;span style="font-family: &amp;#39;Courier New&amp;#39;; color: blue; font-size: 10pt; mso-no-proof: yes"&gt;&amp;gt; &lt;/span&gt;&lt;/p&gt;  &lt;p mce_keep="true"&gt;Reading the metadata model, the Database connector understands that it needs credentials to connect to the database and the credentials can be obtained from the specified secure store provider. Once the database connector has the necessary information for the Secure Store provider, it reads the credentials from the provider and impersonates the user for database connection.&lt;/p&gt;  &lt;p&gt;The following sections explain how to read the metadata model properties within your .NET assembly code and use secure store APIs to read user credentials. &lt;/p&gt;  &lt;h5&gt;Reading metadata model properties&lt;/h5&gt;  &lt;p&gt;To read metadata model properties in the .NET connectivity assembly, code in .NET assembly must implement &lt;a href="http://msdn.microsoft.com/en-us/library/microsoft.businessdata.systemspecific.icontextproperty(office.14).aspx" mce_href="http://msdn.microsoft.com/en-us/library/microsoft.businessdata.systemspecific.icontextproperty(office.14).aspx"&gt;IContextProperty&lt;/a&gt; interface. The following code shows a sample implementation of IContextProperty interface.&lt;/p&gt;  &lt;h5&gt;Sample implementation of IContextProperty&lt;/h5&gt;  &lt;p style="line-height: normal; margin-bottom: 0pt; mso-layout-grid-align: none" class="MsoNormal"&gt;&lt;span style="font-family: &amp;#39;Courier New&amp;#39;; color: blue; font-size: 10pt; mso-no-proof: yes"&gt;using&lt;/span&gt;&lt;span style="font-family: &amp;#39;Courier New&amp;#39;; font-size: 10pt; mso-no-proof: yes"&gt; IContextProperty = Microsoft.BusinessData.SystemSpecific.IContextProperty; &lt;/span&gt;&lt;/p&gt;  &lt;p mce_keep="true"&gt;&lt;span style="font-family: &amp;#39;Courier New&amp;#39;; color: blue; font-size: 10pt; mso-no-proof: yes"&gt;public&lt;/span&gt;&lt;span style="font-family: &amp;#39;Courier New&amp;#39;; font-size: 10pt; mso-no-proof: yes"&gt; &lt;span style="color: blue"&gt;class&lt;/span&gt; &lt;span style="color: #2b91af"&gt;SampleConnector&lt;/span&gt; : IContextProperty       &lt;br /&gt;&lt;/span&gt;&lt;span style="font-family: &amp;#39;Courier New&amp;#39;; font-size: 10pt; mso-no-proof: yes"&gt;{      &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;span style="font-family: &amp;#39;Courier New&amp;#39;; font-size: 10pt; mso-no-proof: yes"&gt;&lt;span style="color: blue"&gt;private&lt;/span&gt; IMethodInstance methodInstance;       &lt;br /&gt;&lt;/span&gt;&lt;span style="font-family: &amp;#39;Courier New&amp;#39;; font-size: 10pt; mso-no-proof: yes"&gt;&lt;span style="mso-spacerun: yes"&gt;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;span style="color: blue"&gt;private&lt;/span&gt; ILobSystemInstance lobSystemInstance;       &lt;br /&gt;&lt;/span&gt;&lt;span style="font-family: &amp;#39;Courier New&amp;#39;; font-size: 10pt; mso-no-proof: yes"&gt;&lt;span style="mso-spacerun: yes"&gt;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;span style="color: blue"&gt;private&lt;/span&gt; IExecutionContext executionContext;&lt;/span&gt;&lt;/p&gt;  &lt;p style="line-height: normal; margin-bottom: 0pt; mso-layout-grid-align: none" class="MsoNormal"&gt;&lt;span style="font-family: &amp;#39;Courier New&amp;#39;; color: blue; font-size: 10pt; mso-no-proof: yes"&gt;&lt;span style="mso-spacerun: yes"&gt;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;#region&lt;/span&gt;&lt;span style="font-family: &amp;#39;Courier New&amp;#39;; font-size: 10pt; mso-no-proof: yes"&gt; IContextProperty implementation&lt;/span&gt;&lt;span style="font-family: &amp;#39;Courier New&amp;#39;; font-size: 10pt; mso-no-proof: yes"&gt; &lt;/span&gt;&lt;/p&gt;  &lt;p style="line-height: normal; margin-bottom: 0pt; mso-layout-grid-align: none" class="MsoNormal"&gt;&lt;span style="font-family: &amp;#39;Courier New&amp;#39;; font-size: 10pt; mso-no-proof: yes"&gt;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;span style="font-family: &amp;#39;Courier New&amp;#39;; font-size: 10pt; mso-no-proof: yes"&gt;&lt;span style="color: blue"&gt;public&lt;/span&gt; IMethodInstance MethodInstance       &lt;br /&gt;&lt;/span&gt;&lt;span style="font-family: &amp;#39;Courier New&amp;#39;; font-size: 10pt; mso-no-proof: yes"&gt;&lt;span style="mso-spacerun: yes"&gt;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;{       &lt;br /&gt;&lt;/span&gt;&lt;span style="font-family: &amp;#39;Courier New&amp;#39;; font-size: 10pt; mso-no-proof: yes"&gt;&lt;span style="mso-spacerun: yes"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;span style="color: blue"&gt;get&lt;/span&gt; { &lt;span style="color: blue"&gt;return&lt;/span&gt; &lt;span style="color: blue"&gt;this&lt;/span&gt;.methodInstance; }       &lt;br /&gt;&lt;/span&gt;&lt;span style="font-family: &amp;#39;Courier New&amp;#39;; font-size: 10pt; mso-no-proof: yes"&gt;&lt;span style="mso-spacerun: yes"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;span style="color: blue"&gt;set&lt;/span&gt; { &lt;span style="color: blue"&gt;this&lt;/span&gt;.methodInstance = &lt;span style="color: blue"&gt;value&lt;/span&gt;; }       &lt;br /&gt;&lt;/span&gt;&lt;span style="font-family: &amp;#39;Courier New&amp;#39;; font-size: 10pt; mso-no-proof: yes"&gt;&lt;span style="mso-spacerun: yes"&gt;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;}&lt;/span&gt;&lt;/p&gt;  &lt;p style="line-height: normal; margin-bottom: 0pt; mso-layout-grid-align: none" class="MsoNormal"&gt;&lt;span style="font-family: &amp;#39;Courier New&amp;#39;; font-size: 10pt; mso-no-proof: yes"&gt;&lt;span style="mso-spacerun: yes"&gt;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;span style="color: blue"&gt;public&lt;/span&gt; ILobSystemInstance LobSystemInstance       &lt;br /&gt;&lt;/span&gt;&lt;span style="font-family: &amp;#39;Courier New&amp;#39;; font-size: 10pt; mso-no-proof: yes"&gt;&lt;span style="mso-spacerun: yes"&gt;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;{       &lt;br /&gt;&lt;/span&gt;&lt;span style="font-family: &amp;#39;Courier New&amp;#39;; font-size: 10pt; mso-no-proof: yes"&gt;&lt;span style="mso-spacerun: yes"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;span style="color: blue"&gt;get&lt;/span&gt; { &lt;span style="color: blue"&gt;return&lt;/span&gt; &lt;span style="color: blue"&gt;this&lt;/span&gt;.lobSystemInstance; }       &lt;br /&gt;&lt;/span&gt;&lt;span style="font-family: &amp;#39;Courier New&amp;#39;; font-size: 10pt; mso-no-proof: yes"&gt;&lt;span style="mso-spacerun: yes"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;span style="color: blue"&gt;set&lt;/span&gt; { &lt;span style="color: blue"&gt;this&lt;/span&gt;.lobSystemInstance = &lt;span style="color: blue"&gt;value&lt;/span&gt;; }       &lt;br /&gt;&lt;/span&gt;&lt;span style="font-family: &amp;#39;Courier New&amp;#39;; font-size: 10pt; mso-no-proof: yes"&gt;&lt;span style="mso-spacerun: yes"&gt;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;} &lt;/span&gt;&lt;/p&gt;  &lt;p style="line-height: normal; margin-bottom: 0pt; mso-layout-grid-align: none" class="MsoNormal"&gt;&lt;span style="font-family: &amp;#39;Courier New&amp;#39;; font-size: 10pt; mso-no-proof: yes"&gt;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;span style="font-family: &amp;#39;Courier New&amp;#39;; font-size: 10pt; mso-no-proof: yes"&gt;&lt;span style="color: blue"&gt;public&lt;/span&gt; IExecutionContext ExecutionContext       &lt;br /&gt;&lt;/span&gt;&lt;span style="font-family: &amp;#39;Courier New&amp;#39;; font-size: 10pt; mso-no-proof: yes"&gt;&lt;span style="mso-spacerun: yes"&gt;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;{       &lt;br /&gt;&lt;/span&gt;&lt;span style="font-family: &amp;#39;Courier New&amp;#39;; font-size: 10pt; mso-no-proof: yes"&gt;&lt;span style="mso-spacerun: yes"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;span style="color: blue"&gt;get&lt;/span&gt; { &lt;span style="color: blue"&gt;return&lt;/span&gt; &lt;span style="color: blue"&gt;this&lt;/span&gt;.executionContext; }       &lt;br /&gt;&lt;/span&gt;&lt;span style="font-family: &amp;#39;Courier New&amp;#39;; font-size: 10pt; mso-no-proof: yes"&gt;&lt;span style="mso-spacerun: yes"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;span style="color: blue"&gt;set&lt;/span&gt; { &lt;span style="color: blue"&gt;this&lt;/span&gt;.executionContext = &lt;span style="color: blue"&gt;value&lt;/span&gt;; }       &lt;br /&gt;&lt;/span&gt;&lt;span style="font-family: &amp;#39;Courier New&amp;#39;; font-size: 10pt; mso-no-proof: yes"&gt;&lt;span style="mso-spacerun: yes"&gt;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;} &lt;/span&gt;&lt;/p&gt;  &lt;p mce_keep="true"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;span style="font-family: &amp;#39;Courier New&amp;#39;; color: blue; font-size: 10pt; mso-no-proof: yes"&gt;#endregion &lt;/span&gt;&lt;/p&gt;  &lt;p mce_keep="true"&gt;&lt;span style="font-family: &amp;#39;Courier New&amp;#39;; font-size: 10pt; mso-no-proof: yes"&gt;&lt;span style="color: green"&gt;&lt;font color="#000000" face="Arial"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/font&gt;// unrelated code removed for brevity         &lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: &amp;#39;Courier New&amp;#39;; font-size: 10pt; mso-no-proof: yes"&gt;} &lt;/span&gt;&lt;/p&gt;  &lt;p mce_keep="true"&gt;When the .NET connectivity assembly class implements the IContextProperty interface, the BCS runtime automatically initializes IContextProperty properties.&lt;/p&gt;  &lt;p&gt;At runtime, the code has the context (method instance and LOB system instance) in which it executes; a method implemented in the code can read the properties from the metadata model. The following code shows how LobSystemInstance properties are read:&lt;/p&gt;  &lt;p style="line-height: normal; margin-bottom: 0pt; mso-layout-grid-align: none" class="MsoNormal"&gt;&lt;span style="font-family: &amp;#39;Courier New&amp;#39;; color: blue; font-size: 10pt; mso-no-proof: yes"&gt;public&lt;/span&gt;&lt;span style="font-family: &amp;#39;Courier New&amp;#39;; font-size: 10pt; mso-no-proof: yes"&gt; SampleEntity GetEntity(&lt;span style="color: blue"&gt;int&lt;/span&gt; id)       &lt;br /&gt;&lt;/span&gt;&lt;span style="font-family: &amp;#39;Courier New&amp;#39;; font-size: 10pt; mso-no-proof: yes"&gt;{      &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;span style="font-family: &amp;#39;Courier New&amp;#39;; color: green; font-size: 10pt; mso-no-proof: yes"&gt;// read the LobSystemInstance property defined in metadata model      &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;span style="font-family: &amp;#39;Courier New&amp;#39;; color: blue; font-size: 10pt; mso-no-proof: yes"&gt;string&lt;/span&gt;&lt;span style="font-family: &amp;#39;Courier New&amp;#39;; font-size: 10pt; mso-no-proof: yes"&gt; provider =&amp;#160; &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; LobSystemInstance.GetProperties()[“ssoProviderImplementation”]       &lt;br /&gt;&lt;span style="color: blue"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; as&lt;/span&gt; &lt;span style="color: blue"&gt;string&lt;/span&gt;;&lt;/span&gt;&lt;span style="font-family: &amp;#39;Courier New&amp;#39;; font-size: 10pt; mso-no-proof: yes"&gt; &lt;/span&gt;&lt;/p&gt;  &lt;p style="line-height: normal; margin-bottom: 0pt; mso-layout-grid-align: none" class="MsoNormal"&gt;&lt;span style="font-family: &amp;#39;Courier New&amp;#39;; font-size: 10pt; mso-no-proof: yes"&gt;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;span style="font-family: &amp;#39;Courier New&amp;#39;; color: green; font-size: 10pt; mso-no-proof: yes"&gt;// unrelated code removed for brevity      &lt;br /&gt;&lt;/span&gt;&lt;span style="font-family: &amp;#39;Courier New&amp;#39;; font-size: 10pt; mso-no-proof: yes"&gt;}&lt;/span&gt; &lt;/p&gt;  &lt;p mce_keep="true"&gt;&lt;strong&gt;Interacting with Secure Store&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;When the .NET connectivity assembly requires reading &lt;b&gt;one credential&lt;/b&gt; from Secure Store, we recommend using the following property names.&lt;/p&gt;  &lt;p&gt;ssoProviderImplementation – Secure Store provider    &lt;br /&gt;SecondarySsoApplicationId – Target Application for Secure Store&lt;/p&gt;  &lt;p&gt;ssoProviderImplementation and SecondarySsoApplicationId properties are supported for modeling .NET assembly connector models in SPD.&lt;/p&gt;  &lt;p&gt;If the .NET connectivity assembly requires reading more than one credential from Secure Store, choose a property name that makes the most sense for your scenario.&lt;/p&gt;  &lt;h6&gt;Sample implementation for reading credentials&lt;/h6&gt;  &lt;p&gt;The first step is to instantiate the Secure Store provider from the provider implementation. In your code, make sure that the provider implements &lt;a href="http://msdn.microsoft.com/en-us/library/microsoft.businessdata.infrastructure.securestore.isecurestoreprovider(office.14).aspx" mce_href="http://msdn.microsoft.com/en-us/library/microsoft.businessdata.infrastructure.securestore.isecurestoreprovider(office.14).aspx"&gt;ISecureStoreProvider&lt;/a&gt; interface.&lt;/p&gt;  &lt;p&gt;A simple implementation for instantiating the provider may look like&lt;/p&gt;  &lt;p style="line-height: normal; margin-bottom: 0pt; mso-layout-grid-align: none" class="MsoNormal"&gt;&lt;span style="font-family: &amp;#39;Courier New&amp;#39;; color: blue; font-size: 10pt; mso-no-proof: yes"&gt;private&lt;/span&gt;&lt;span style="font-family: &amp;#39;Courier New&amp;#39;; font-size: 10pt; mso-no-proof: yes"&gt; ISecureStoreProvider GetSecureStoreProvider()      &lt;br /&gt;&lt;/span&gt;&lt;span style="font-family: &amp;#39;Courier New&amp;#39;; font-size: 10pt; mso-no-proof: yes"&gt;{&lt;/span&gt;&lt;/p&gt;  &lt;p style="line-height: normal; margin-bottom: 0pt; mso-layout-grid-align: none" class="MsoNormal"&gt;&lt;span style="font-family: &amp;#39;Courier New&amp;#39;; font-size: 10pt; mso-no-proof: yes"&gt;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;span style="font-family: &amp;#39;Courier New&amp;#39;; font-size: 10pt; mso-no-proof: yes"&gt;&lt;span style="color: green"&gt;// error checking removed for brevity&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="line-height: normal; margin: 0in 0in 0pt 24pt; mso-layout-grid-align: none" class="MsoNormal"&gt;&lt;span style="font-family: &amp;#39;Courier New&amp;#39;; color: blue; font-size: 10pt; mso-no-proof: yes"&gt;string&lt;/span&gt;&lt;span style="font-family: &amp;#39;Courier New&amp;#39;; font-size: 10pt; mso-no-proof: yes"&gt; provider = &lt;span style="color: blue"&gt;this&lt;/span&gt;.LobSystemInstance.GetProperties()&amp;#160; &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; [“ssoProviderImplementation”] &lt;span style="color: blue"&gt;as&lt;/span&gt; &lt;span style="color: blue"&gt;string&lt;/span&gt;;&lt;/span&gt;&lt;span style="font-family: &amp;#39;Courier New&amp;#39;; font-size: 10pt; mso-no-proof: yes"&gt; &lt;/span&gt;&lt;/p&gt;  &lt;p style="line-height: normal; margin: 0in 0in 0pt 24pt; mso-layout-grid-align: none" class="MsoNormal"&gt;&lt;span style="font-family: &amp;#39;Courier New&amp;#39;; font-size: 10pt; mso-no-proof: yes"&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="line-height: normal; margin: 0in 0in 0pt 24pt; mso-layout-grid-align: none" class="MsoNormal"&gt;&lt;span style="font-family: &amp;#39;Courier New&amp;#39;; font-size: 10pt; mso-no-proof: yes"&gt;&lt;/span&gt;&lt;span style="font-family: &amp;#39;Courier New&amp;#39;; font-size: 10pt; mso-no-proof: yes"&gt;Type providerType = Type.GetType(provider); &lt;/span&gt;&lt;/p&gt;  &lt;p style="line-height: normal; margin: 0in 0in 0pt 24pt; mso-layout-grid-align: none" class="MsoNormal"&gt;&lt;span style="font-family: &amp;#39;Courier New&amp;#39;; font-size: 10pt; mso-no-proof: yes"&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="line-height: normal; margin: 0in 0in 0pt 24pt; mso-layout-grid-align: none" class="MsoNormal"&gt;&lt;span style="font-family: &amp;#39;Courier New&amp;#39;; font-size: 10pt; mso-no-proof: yes"&gt;&lt;/span&gt;&lt;span style="font-family: &amp;#39;Courier New&amp;#39;; font-size: 10pt; mso-no-proof: yes"&gt;&lt;span style="color: blue"&gt;return&lt;/span&gt; Activator.CreateInstance(providerType)&amp;#160; &lt;br /&gt;&lt;span style="color: blue"&gt;&amp;#160;&amp;#160;&amp;#160; as &lt;/span&gt;ISecureStoreProvider;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNoSpacing"&gt;&lt;span style="font-family: &amp;#39;Courier New&amp;#39;; font-size: 10pt; mso-no-proof: yes"&gt;}&lt;/span&gt; &lt;/p&gt;  &lt;p mce_keep="true"&gt;Once the Secure Store provider has been instantiated, it’s time to get the credentials from Secure Store. Secure Store returns a &lt;a href="http://msdn.microsoft.com/en-us/library/microsoft.businessdata.infrastructure.securestore.securestorecredentialcollection(office.14).aspx" mce_href="http://msdn.microsoft.com/en-us/library/microsoft.businessdata.infrastructure.securestore.securestorecredentialcollection(office.14).aspx"&gt;SecureStoreCredentialCollection &lt;/a&gt;for the user and target id, which contains a collection of credentials. &lt;a href="http://msdn.microsoft.com/en-us/library/microsoft.businessdata.infrastructure.securestore.isecurestorecredential_properties(office.14).aspx" mce_href="http://msdn.microsoft.com/en-us/library/microsoft.businessdata.infrastructure.securestore.isecurestorecredential_properties(office.14).aspx"&gt;ISecureStoreSecureCredentials&lt;/a&gt; interface defines the credentials type and its value. &lt;/p&gt;  &lt;p style="line-height: normal; margin-bottom: 0pt; mso-layout-grid-align: none" class="MsoNormal"&gt;&lt;span style="font-family: &amp;#39;Courier New&amp;#39;; color: blue; font-size: 10pt; mso-no-proof: yes"&gt;private&lt;/span&gt;&lt;span style="font-family: &amp;#39;Courier New&amp;#39;; font-size: 10pt; mso-no-proof: yes"&gt; &lt;span style="color: blue"&gt;void&lt;/span&gt; ReadCredentialsFromSecureStore()       &lt;br /&gt;&lt;/span&gt;&lt;span style="font-family: &amp;#39;Courier New&amp;#39;; font-size: 10pt; mso-no-proof: yes"&gt;{ &lt;/span&gt;&lt;/p&gt;  &lt;p style="line-height: normal; margin-bottom: 0pt; mso-layout-grid-align: none" class="MsoNormal"&gt;&lt;span style="font-family: &amp;#39;Courier New&amp;#39;; font-size: 10pt; mso-no-proof: yes"&gt;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;span style="font-family: &amp;#39;Courier New&amp;#39;; font-size: 10pt; mso-no-proof: yes"&gt;&lt;span style="color: green"&gt;// error checking removed for brevity&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: &amp;#39;Courier New&amp;#39;; color: green; font-size: 10pt; mso-no-proof: yes"&gt; &lt;/span&gt;&lt;/p&gt;  &lt;p style="line-height: normal; margin-bottom: 0pt; mso-layout-grid-align: none" class="MsoNormal"&gt;&lt;span style="font-family: &amp;#39;Courier New&amp;#39;; color: green; font-size: 10pt; mso-no-proof: yes"&gt;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;span style="font-family: &amp;#39;Courier New&amp;#39;; color: blue; font-size: 10pt; mso-no-proof: yes"&gt;string&lt;/span&gt;&lt;span style="font-family: &amp;#39;Courier New&amp;#39;; font-size: 10pt; mso-no-proof: yes"&gt; targetId =      &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; LobSystemInstance.GetProperties()[“SecondarySsoApplicationId”]&lt;span style="color: blue"&gt;&amp;#160; &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; as&lt;/span&gt; &lt;span style="color: blue"&gt;string&lt;/span&gt;;       &lt;br /&gt;&lt;/span&gt;&lt;span style="font-family: &amp;#39;Courier New&amp;#39;; font-size: 10pt; mso-no-proof: yes"&gt;&amp;#160;&amp;#160;&amp;#160; ISecureStoreProvider provider = GetSecureStoreProvider();&lt;/span&gt;&lt;/p&gt;  &lt;p style="line-height: normal; margin-bottom: 0pt; mso-layout-grid-align: none" class="MsoNormal"&gt;&lt;span style="font-family: &amp;#39;Courier New&amp;#39;; font-size: 10pt; mso-no-proof: yes"&gt;&lt;span style="mso-spacerun: yes"&gt;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;span style="color: green"&gt;// get the credentials for the user on whose behalf the code        &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; // is executing         &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: &amp;#39;Courier New&amp;#39;; color: blue; font-size: 10pt; mso-no-proof: yes"&gt;using&lt;/span&gt;&lt;span style="font-family: &amp;#39;Courier New&amp;#39;; font-size: 10pt; mso-no-proof: yes"&gt;(SecureStoreCredentialCollection credentials = &lt;span style="mso-spacerun: yes"&gt;&amp;#160;&amp;#160; &lt;/span&gt;&amp;#160; &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; provider.GetRestrictedCredentials(targetId))       &lt;br /&gt;&lt;/span&gt;&lt;span style="font-family: &amp;#39;Courier New&amp;#39;; font-size: 10pt; mso-no-proof: yes"&gt;&lt;span style="mso-spacerun: yes"&gt;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;{       &lt;br /&gt;&lt;/span&gt;&lt;span style="font-family: &amp;#39;Courier New&amp;#39;; font-size: 10pt; mso-no-proof: yes"&gt;&lt;span style="mso-spacerun: yes"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;SecureString secureUsername;       &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;span style="font-family: &amp;#39;Courier New&amp;#39;; font-size: 10pt; mso-no-proof: yes"&gt;SecureString securePassword; &lt;/span&gt;&lt;/p&gt;  &lt;p mce_keep="true"&gt;&amp;#160;&lt;span style="font-family: &amp;#39;Courier New&amp;#39;; font-size: 10pt; mso-no-proof: yes"&gt;&lt;span style="color: green"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; // look for username and password in credentials        &lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: &amp;#39;Courier New&amp;#39;; font-size: 10pt; mso-no-proof: yes"&gt;&lt;span style="color: blue"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; foreach&lt;/span&gt; (ISecureStoreCredential credential &lt;span style="color: blue"&gt;in&lt;/span&gt; credentials)       &lt;br /&gt;&lt;/span&gt;&lt;span style="font-family: &amp;#39;Courier New&amp;#39;; font-size: 10pt; mso-no-proof: yes"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; {      &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;span style="font-family: &amp;#39;Courier New&amp;#39;; font-size: 10pt; mso-no-proof: yes"&gt;&lt;span style="color: blue"&gt;switch&lt;/span&gt; (credential.CredentialType)       &lt;br /&gt;&lt;/span&gt;&lt;span style="font-family: &amp;#39;Courier New&amp;#39;; font-size: 10pt; mso-no-proof: yes"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; {      &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; c&lt;/span&gt;&lt;span style="font-family: &amp;#39;Courier New&amp;#39;; font-size: 10pt; mso-no-proof: yes"&gt;&lt;span style="color: blue"&gt;ase&lt;/span&gt; SecureStoreCredentialType.UserName:       &lt;br /&gt;&lt;/span&gt;&lt;span style="font-family: &amp;#39;Courier New&amp;#39;; font-size: 10pt; mso-no-proof: yes"&gt;&lt;span style="color: blue"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; case &lt;/span&gt;SecureStoreCredentialType.WindowsUserName:       &lt;br /&gt;&lt;/span&gt;&lt;span style="font-family: &amp;#39;Courier New&amp;#39;; font-size: 10pt; mso-no-proof: yes"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; secureUsername = credential.Credential;      &lt;br /&gt;&lt;/span&gt;&lt;span style="font-family: &amp;#39;Courier New&amp;#39;; font-size: 10pt; mso-no-proof: yes"&gt;&lt;span style="color: blue"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; break&lt;/span&gt;;       &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;span style="font-family: &amp;#39;Courier New&amp;#39;; font-size: 10pt; mso-no-proof: yes"&gt;&lt;span style="color: blue"&gt;case&lt;/span&gt; SecureStoreCredentialType.Password:       &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;span style="font-family: &amp;#39;Courier New&amp;#39;; font-size: 10pt; mso-no-proof: yes"&gt;&lt;span style="color: blue"&gt;case&lt;/span&gt; SecureStoreCredentialType.WindowsPassword:       &lt;br /&gt;&lt;/span&gt;&lt;span style="font-family: &amp;#39;Courier New&amp;#39;; font-size: 10pt; mso-no-proof: yes"&gt;&lt;span style="mso-spacerun: yes"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;securePassword = credential.Credential;       &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;span style="font-family: &amp;#39;Courier New&amp;#39;; font-size: 10pt; mso-no-proof: yes"&gt;&lt;span style="color: blue"&gt;break&lt;/span&gt;;       &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;span style="font-family: &amp;#39;Courier New&amp;#39;; font-size: 10pt; mso-no-proof: yes"&gt;&lt;span style="color: blue"&gt;default&lt;/span&gt;:       &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;span style="font-family: &amp;#39;Courier New&amp;#39;; font-size: 10pt; mso-no-proof: yes"&gt;&lt;span style="color: blue"&gt;break&lt;/span&gt;;       &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;span style="font-family: &amp;#39;Courier New&amp;#39;; font-size: 10pt; mso-no-proof: yes"&gt;}      &lt;br /&gt;&lt;/span&gt;&lt;span style="font-family: &amp;#39;Courier New&amp;#39;; font-size: 10pt; mso-no-proof: yes"&gt;&lt;span style="mso-spacerun: yes"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;}       &lt;br /&gt;&lt;/span&gt;&lt;span style="font-family: &amp;#39;Courier New&amp;#39;; font-size: 10pt; mso-no-proof: yes"&gt;&lt;span style="mso-spacerun: yes"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;span style="color: green"&gt;// username and password have been read        &lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: &amp;#39;Courier New&amp;#39;; font-size: 10pt; mso-no-proof: yes"&gt;&lt;span style="mso-spacerun: yes"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;span style="color: green"&gt;// use them as necessary.&amp;#160; &lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: &amp;#39;Courier New&amp;#39;; font-size: 10pt; mso-no-proof: yes"&gt;&lt;span style="mso-spacerun: yes"&gt;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;} &lt;/span&gt;&lt;/p&gt;  &lt;p mce_keep="true"&gt;&amp;#160;&lt;span style="font-family: &amp;#39;Courier New&amp;#39;; font-size: 10pt; mso-no-proof: yes"&gt;&lt;span style="mso-spacerun: yes"&gt;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;span style="color: green"&gt;//NOTE: Since we are getting the credentials in the using block,&amp;#160; &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; //&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: &amp;#39;Courier New&amp;#39;; font-size: 10pt; mso-no-proof: yes"&gt;&lt;span style="color: green"&gt;all the c&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: &amp;#39;Courier New&amp;#39;; font-size: 10pt; mso-no-proof: yes"&gt;&lt;span style="color: green"&gt;redentials that we get will be disposed after the        &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; //&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: &amp;#39;Courier New&amp;#39;; font-size: 10pt; mso-no-proof: yes"&gt;&lt;span style="color: green"&gt;using block. If you need to &lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: &amp;#39;Courier New&amp;#39;; font-size: 10pt; mso-no-proof: yes"&gt;&lt;span style="color: green"&gt;cache the credentials don't use        &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; //&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: &amp;#39;Courier New&amp;#39;; font-size: 10pt; mso-no-proof: yes"&gt;&lt;span style="color: green"&gt;using block but dispose the credentials when &lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: &amp;#39;Courier New&amp;#39;; font-size: 10pt; mso-no-proof: yes"&gt;&lt;span style="color: green"&gt;you are done        &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; //&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: &amp;#39;Courier New&amp;#39;; font-size: 10pt; mso-no-proof: yes"&gt;&lt;span style="color: green"&gt;with it.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="line-height: normal; margin-bottom: 0pt; mso-layout-grid-align: none" class="MsoNormal"&gt;&lt;span style="font-family: &amp;#39;Courier New&amp;#39;; font-size: 10pt; mso-no-proof: yes"&gt;&lt;span style="color: green"&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: &amp;#39;Courier New&amp;#39;; font-size: 10pt; mso-no-proof: yes"&gt;} &lt;/span&gt;&lt;/p&gt;  &lt;p mce_keep="true"&gt;The above code shows how the credentials are read from secure store. These credentials can be used for authentication to an external system. &lt;/p&gt;  &lt;h4&gt;Summary&lt;/h4&gt;  &lt;p&gt;Depending upon your scenario, you may choose no-code approach or code approach to leverage secure store in your .NET connectivity assembly. The following table lists the differences between these two approaches. &lt;/p&gt;  &lt;p&gt;   &lt;table border="1" cellspacing="0" cellpadding="0"&gt;&lt;tbody&gt;       &lt;tr&gt;         &lt;td valign="top" width="331"&gt;&amp;#160;&lt;/td&gt;          &lt;td valign="top" width="150"&gt;           &lt;p&gt;&lt;b&gt;No-code approach&lt;/b&gt;&lt;/p&gt;         &lt;/td&gt;          &lt;td valign="top" width="157"&gt;           &lt;p&gt;&lt;b&gt;Code approach&lt;/b&gt;&lt;/p&gt;         &lt;/td&gt;       &lt;/tr&gt;        &lt;tr&gt;         &lt;td valign="top" width="331"&gt;           &lt;p&gt;Interaction with secure store API required?&lt;/p&gt;         &lt;/td&gt;          &lt;td valign="top" width="150"&gt;           &lt;p&gt;No&lt;/p&gt;         &lt;/td&gt;          &lt;td valign="top" width="157"&gt;           &lt;p&gt;Yes&lt;/p&gt;         &lt;/td&gt;       &lt;/tr&gt;        &lt;tr&gt;         &lt;td valign="top" width="331"&gt;           &lt;p&gt;Exclusive to .NET assembly connector&lt;/p&gt;         &lt;/td&gt;          &lt;td valign="top" width="150"&gt;           &lt;p&gt;No&lt;/p&gt;         &lt;/td&gt;          &lt;td valign="top" width="157"&gt;           &lt;p&gt;Yes&lt;/p&gt;         &lt;/td&gt;       &lt;/tr&gt;        &lt;tr&gt;         &lt;td valign="top" width="331"&gt;           &lt;p&gt;SPD support&lt;/p&gt;         &lt;/td&gt;          &lt;td valign="top" width="150"&gt;           &lt;p&gt;Yes&lt;/p&gt;         &lt;/td&gt;          &lt;td valign="top" width="157"&gt;           &lt;p&gt;Partially&lt;/p&gt;         &lt;/td&gt;       &lt;/tr&gt;        &lt;tr&gt;         &lt;td valign="top" width="331"&gt;           &lt;p&gt;Impacts method signature&lt;/p&gt;         &lt;/td&gt;          &lt;td valign="top" width="150"&gt;           &lt;p&gt;Yes&lt;/p&gt;         &lt;/td&gt;          &lt;td valign="top" width="157"&gt;           &lt;p&gt;No&lt;/p&gt;         &lt;/td&gt;       &lt;/tr&gt;        &lt;tr&gt;         &lt;td valign="top" width="331"&gt;           &lt;p&gt;Read from multiple Secure Store&lt;/p&gt;         &lt;/td&gt;          &lt;td valign="top" width="150"&gt;           &lt;p&gt;No&lt;/p&gt;         &lt;/td&gt;          &lt;td valign="top" width="157"&gt;           &lt;p&gt;Yes&lt;/p&gt;         &lt;/td&gt;       &lt;/tr&gt;        &lt;tr&gt;         &lt;td valign="top" width="331"&gt;           &lt;p&gt;Can credentials be set at LobSystemInstance level?&lt;/p&gt;         &lt;/td&gt;          &lt;td valign="top" width="150"&gt;           &lt;p&gt;No&lt;/p&gt;         &lt;/td&gt;          &lt;td valign="top" width="157"&gt;           &lt;p&gt;Yes&lt;/p&gt;         &lt;/td&gt;       &lt;/tr&gt;     &lt;/tbody&gt;&lt;/table&gt; &lt;/p&gt;  &lt;p&gt;-Kaushik Raj&lt;/p&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10009379" width="1" height="1"&gt;</description></item><item><title>BCS Logging</title><link>http://blogs.msdn.com/b/bcs/archive/2010/05/07/bcs-logging.aspx</link><pubDate>Fri, 07 May 2010 09:36:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10009256</guid><dc:creator>lionelro</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blogs.msdn.com/b/bcs/rsscomments.aspx?WeblogPostID=10009256</wfw:commentRss><comments>http://blogs.msdn.com/b/bcs/archive/2010/05/07/bcs-logging.aspx#comments</comments><description>&lt;P&gt;BCS is a cool framework to bring external data to Office Applications on the client. But due to various reasons like misconfigured BDC models/ Advanced Code-Based Solutions/ Intermediate Declarative Solutions or External System’s business logic, the expected data might not show up on the client. Most of the troubleshooting can be done by looking at the event logs. If the information in event logs is not enough to troubleshoot the issue, then the next best thing to do is start BCS logging on the client. Client logs provide rich and descriptive information, which is really helpful in debugging complex issues. Check out &lt;A href="http://technet.microsoft.com/en-us/library/ff463594(office.14).aspx" mce_href="http://technet.microsoft.com/en-us/library/ff463594(office.14).aspx"&gt;“Diagnostic logging in Business Connectivity Services overview (SharePoint Server 2010&lt;/A&gt;)” for information on how to enable BCS logging on the client.&lt;/P&gt;
&lt;P&gt;There are 2 levels of logging from BCS on the client – &lt;B&gt;Events logs&lt;/B&gt;&lt;B&gt; &lt;/B&gt;and &lt;B&gt;Trace logs&lt;/B&gt;. All the logging from BCS can be found in Trace logs. Whereas only a subset of the Trace logs are logged under Event Logs and they comprise of the important BCS actions which will help the user in figuring out the state of the BCS Solutions on the client i.e. information regarding the Solution download, Install &amp;amp; Uninstall, solution activation, Services startup &amp;amp; shutdown, Solution Registration and Errors. Trace Logs are more descriptive than Event logs and contains the exception stack trace of errors if any.&lt;/P&gt;
&lt;P&gt;Here are the different Categories under which most of the BCS actions are logged:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;B&gt;Deployment&lt;/B&gt; - The logs under this category help the user to figure out the important deployment actions that happen when offlining an External list from SharePoint or while doing a standalone install of Declarative/Code-Based solutions. All the actions involved with Solution download, Activation, package verification and Uninstallation get logged under this category. &lt;BR&gt;&amp;nbsp; &lt;/LI&gt;
&lt;LI&gt;&lt;B&gt;Runtime&lt;/B&gt; – BCS on the client has both managed and unmanaged assemblies. All the offlining calls from the managed components of BCS like CRUD operations, Subscription Refresh, Picker resolution, Rich List part actions from office applications, etc…fall under this category. &lt;BR&gt;&amp;nbsp; &lt;/LI&gt;
&lt;LI&gt;&lt;B&gt;Wrapped PST&lt;/B&gt; – The logs under this category are from the unmanaged BCS Add-in running in outlook. &lt;BR&gt;&amp;nbsp; &lt;/LI&gt;
&lt;LI&gt;&lt;B&gt;Business Data&lt;/B&gt; – All the BDC Runtime calls involved in executing against the External System are found under this category. These calls include preparation of the request, invoking of BDC stereotype methods against the External System and runtime processing of the results. &lt;BR&gt;&amp;nbsp; &lt;BR&gt;&lt;I&gt;By default the values of Input and Return Parameters are not dumped in the logs due to privacy issues. For debugging purpose, you can add the “&lt;B&gt;LogParameterValues&lt;/B&gt;” property at the Method Parameter level in metadata to log the parameter values sent and received from the External System for every call. &lt;BR&gt;&amp;nbsp; &lt;BR&gt;&lt;/I&gt;&lt;FONT size=1&gt;&lt;SPAN style="FONT-FAMILY: 'Courier New'; COLOR: blue; FONT-SIZE: 10pt; mso-no-proof: yes"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="FONT-FAMILY: 'Courier New'; COLOR: #a31515; FONT-SIZE: 10pt; mso-no-proof: yes"&gt;Property &lt;/SPAN&gt;&lt;SPAN style="FONT-FAMILY: 'Courier New'; COLOR: red; FONT-SIZE: 10pt; mso-no-proof: yes"&gt;Name&lt;/SPAN&gt;&lt;SPAN style="FONT-FAMILY: 'Courier New'; COLOR: blue; FONT-SIZE: 10pt; mso-no-proof: yes"&gt;=&lt;/SPAN&gt;&lt;SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt; mso-no-proof: yes"&gt;"&lt;SPAN style="COLOR: blue"&gt;LogParameterValues&lt;/SPAN&gt;"&lt;SPAN style="COLOR: blue"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR: red"&gt;Type&lt;/SPAN&gt;&lt;SPAN style="COLOR: blue"&gt;=&lt;/SPAN&gt;"&lt;SPAN style="COLOR: blue"&gt;System.Boolean&lt;/SPAN&gt;"&lt;SPAN style="COLOR: blue"&gt;&amp;gt;&lt;/SPAN&gt;true&lt;SPAN style="COLOR: blue"&gt;&amp;lt;/&lt;/SPAN&gt;&lt;SPAN style="COLOR: #a31515"&gt;Property&lt;/SPAN&gt;&lt;SPAN style="COLOR: blue"&gt;&amp;gt; &lt;BR&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/FONT&gt; &lt;/LI&gt;
&lt;LI&gt;&lt;B&gt;Cross Sync&lt;/B&gt; – Actions involving data Sync between Offline Cache (i.e. SQL CE database) and Outlook Wrapped PST are logged under this category. &lt;/LI&gt;&lt;/UL&gt;
&lt;P&gt;Here are some sample logs which outline the important actions logged as part of the E2E life cycle of a WCF based External Content Type (ECT) off-lined to outlook:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;B&gt;Solution Install/ List Offlining logs:&lt;/B&gt; 
&lt;UL&gt;
&lt;LI&gt;&lt;B style="mso-bidi-font-weight: normal"&gt;&lt;SPAN style="COLOR: blue; FONT-SIZE: 10pt; mso-bidi-font-size: 11.0pt; mso-ascii-font-family: calibri; mso-fareast-font-family: calibri; mso-hansi-font-family: calibri; mso-bidi-font-family: calibri"&gt;Runtime&lt;/SPAN&gt;&lt;/B&gt;&lt;SPAN style="COLOR: blue; FONT-SIZE: 10pt; mso-bidi-font-size: 11.0pt; mso-ascii-font-family: calibri; mso-fareast-font-family: calibri; mso-hansi-font-family: calibri; mso-bidi-font-family: calibri"&gt; - BCSSync started with PID: 4020, integrity level: 8192 and command line: ""C:\Program Files (x86)\Microsoft Office\Office14\BCSSync.exe" -Embedding".&lt;/SPAN&gt; &lt;/LI&gt;
&lt;LI&gt;&lt;B style="mso-bidi-font-weight: normal"&gt;&lt;SPAN style="COLOR: blue; FONT-SIZE: 10pt; mso-bidi-font-size: 11.0pt; mso-ascii-font-family: calibri; mso-fareast-font-family: calibri; mso-hansi-font-family: calibri; mso-bidi-font-family: calibri"&gt;Runtime&lt;/SPAN&gt;&lt;/B&gt;&lt;SPAN style="COLOR: blue; FONT-SIZE: 10pt; mso-bidi-font-size: 11.0pt; mso-ascii-font-family: calibri; mso-fareast-font-family: calibri; mso-hansi-font-family: calibri; mso-bidi-font-family: calibri"&gt; - Cache database file not found, creating new database file.&lt;/SPAN&gt; &lt;/LI&gt;
&lt;LI&gt;&lt;SPAN style="COLOR: blue; FONT-SIZE: 10pt; mso-bidi-font-size: 11.0pt; mso-ascii-font-family: calibri; mso-fareast-font-family: calibri; mso-hansi-font-family: calibri; mso-bidi-font-family: calibri"&gt;&lt;/SPAN&gt;&lt;B style="mso-bidi-font-weight: normal"&gt;&lt;SPAN style="COLOR: blue; FONT-SIZE: 10pt; mso-bidi-font-size: 11.0pt; mso-ascii-font-family: calibri; mso-fareast-font-family: calibri; mso-hansi-font-family: calibri; mso-bidi-font-family: calibri"&gt;Runtime&lt;/SPAN&gt;&lt;/B&gt;&lt;SPAN style="COLOR: blue; FONT-SIZE: 10pt; mso-bidi-font-size: 11.0pt; mso-ascii-font-family: calibri; mso-fareast-font-family: calibri; mso-hansi-font-family: calibri; mso-bidi-font-family: calibri"&gt; - BCS directory encrypted successfully.&lt;/SPAN&gt; &lt;/LI&gt;
&lt;LI&gt;&lt;SPAN style="COLOR: blue; FONT-SIZE: 10pt; mso-bidi-font-size: 11.0pt; mso-ascii-font-family: calibri; mso-fareast-font-family: calibri; mso-hansi-font-family: calibri; mso-bidi-font-family: calibri"&gt;&lt;/SPAN&gt;&lt;B style="mso-bidi-font-weight: normal"&gt;&lt;SPAN style="COLOR: blue; FONT-SIZE: 10pt; mso-bidi-font-size: 11.0pt; mso-ascii-font-family: calibri; mso-fareast-font-family: calibri; mso-hansi-font-family: calibri; mso-bidi-font-family: calibri"&gt;Runtime&lt;/SPAN&gt;&lt;/B&gt;&lt;SPAN style="COLOR: blue; FONT-SIZE: 10pt; mso-bidi-font-size: 11.0pt; mso-ascii-font-family: calibri; mso-fareast-font-family: calibri; mso-hansi-font-family: calibri; mso-bidi-font-family: calibri"&gt; - Service Microsoft.Office.BusinessApplications.Runtime.DiskIOThrottler was started.&lt;/SPAN&gt; &lt;/LI&gt;
&lt;LI&gt;&lt;SPAN style="COLOR: blue; FONT-SIZE: 10pt; mso-bidi-font-size: 11.0pt; mso-ascii-font-family: calibri; mso-fareast-font-family: calibri; mso-hansi-font-family: calibri; mso-bidi-font-family: calibri"&gt;&lt;/SPAN&gt;&lt;SPAN style="COLOR: blue; FONT-SIZE: 10pt; mso-bidi-font-size: 11.0pt; mso-ascii-font-family: calibri; mso-fareast-font-family: calibri; mso-hansi-font-family: calibri; mso-bidi-font-family: calibri"&gt;&lt;SPAN style="mso-list: ignore"&gt;&lt;SPAN style="FONT: 7pt 'Times New Roman'"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;B style="mso-bidi-font-weight: normal"&gt;&lt;SPAN style="COLOR: blue; FONT-SIZE: 10pt; mso-bidi-font-size: 11.0pt; mso-ascii-font-family: calibri; mso-fareast-font-family: calibri; mso-hansi-font-family: calibri; mso-bidi-font-family: calibri"&gt;Runtime&lt;/SPAN&gt;&lt;/B&gt;&lt;SPAN style="COLOR: blue; FONT-SIZE: 10pt; mso-bidi-font-size: 11.0pt; mso-ascii-font-family: calibri; mso-fareast-font-family: calibri; mso-hansi-font-family: calibri; mso-bidi-font-family: calibri"&gt; - Service Microsoft.Office.BusinessApplications.Runtime.ProxyRegistrationService was started.&lt;/SPAN&gt; &lt;/LI&gt;
&lt;LI&gt;&lt;SPAN style="COLOR: blue; FONT-SIZE: 10pt; mso-bidi-font-size: 11.0pt; mso-ascii-font-family: calibri; mso-fareast-font-family: calibri; mso-hansi-font-family: calibri; mso-bidi-font-family: calibri"&gt;&lt;/SPAN&gt;&lt;B style="mso-bidi-font-weight: normal"&gt;&lt;SPAN style="COLOR: blue; FONT-SIZE: 10pt; mso-bidi-font-size: 11.0pt; mso-ascii-font-family: calibri; mso-fareast-font-family: calibri; mso-hansi-font-family: calibri; mso-bidi-font-family: calibri"&gt;Runtime&lt;/SPAN&gt;&lt;/B&gt;&lt;SPAN style="COLOR: blue; FONT-SIZE: 10pt; mso-bidi-font-size: 11.0pt; mso-ascii-font-family: calibri; mso-fareast-font-family: calibri; mso-hansi-font-family: calibri; mso-bidi-font-family: calibri"&gt; - Service Microsoft.Office.BusinessApplications.Runtime.Deployment.ActivatorService was started.&lt;/SPAN&gt; &lt;/LI&gt;
&lt;LI&gt;&lt;SPAN style="COLOR: blue; FONT-SIZE: 10pt; mso-bidi-font-size: 11.0pt; mso-ascii-font-family: calibri; mso-fareast-font-family: calibri; mso-hansi-font-family: calibri; mso-bidi-font-family: calibri"&gt;&lt;/SPAN&gt;&lt;B style="mso-bidi-font-weight: normal"&gt;&lt;SPAN style="COLOR: blue; FONT-SIZE: 10pt; mso-bidi-font-size: 11.0pt; mso-ascii-font-family: calibri; mso-fareast-font-family: calibri; mso-hansi-font-family: calibri; mso-bidi-font-family: calibri"&gt;Runtime&lt;/SPAN&gt;&lt;/B&gt;&lt;SPAN style="COLOR: blue; FONT-SIZE: 10pt; mso-bidi-font-size: 11.0pt; mso-ascii-font-family: calibri; mso-fareast-font-family: calibri; mso-hansi-font-family: calibri; mso-bidi-font-family: calibri"&gt; - Service Microsoft.Office.BusinessApplications.Runtime.Deployment.VerifierService was started.&lt;/SPAN&gt; &lt;/LI&gt;
&lt;LI&gt;&lt;SPAN style="COLOR: blue; FONT-SIZE: 10pt; mso-bidi-font-size: 11.0pt; mso-ascii-font-family: calibri; mso-fareast-font-family: calibri; mso-hansi-font-family: calibri; mso-bidi-font-family: calibri"&gt;&lt;/SPAN&gt;&lt;B style="mso-bidi-font-weight: normal"&gt;&lt;SPAN style="COLOR: blue; FONT-SIZE: 10pt; mso-bidi-font-size: 11.0pt; mso-ascii-font-family: calibri; mso-fareast-font-family: calibri; mso-hansi-font-family: calibri; mso-bidi-font-family: calibri"&gt;Runtime&lt;/SPAN&gt;&lt;/B&gt;&lt;SPAN style="COLOR: blue; FONT-SIZE: 10pt; mso-bidi-font-size: 11.0pt; mso-ascii-font-family: calibri; mso-fareast-font-family: calibri; mso-hansi-font-family: calibri; mso-bidi-font-family: calibri"&gt; - Service Microsoft.Office.BusinessData.Offlining.SynchronizationManager was started.&lt;/SPAN&gt; &lt;/LI&gt;
&lt;LI&gt;&lt;SPAN style="COLOR: blue; FONT-SIZE: 10pt; mso-bidi-font-size: 11.0pt; mso-ascii-font-family: calibri; mso-fareast-font-family: calibri; mso-hansi-font-family: calibri; mso-bidi-font-family: calibri"&gt;&lt;/SPAN&gt;&lt;B style="mso-bidi-font-weight: normal"&gt;&lt;SPAN style="COLOR: blue; FONT-SIZE: 10pt; mso-bidi-font-size: 11.0pt; mso-ascii-font-family: calibri; mso-fareast-font-family: calibri; mso-hansi-font-family: calibri; mso-bidi-font-family: calibri"&gt;Runtime&lt;/SPAN&gt;&lt;/B&gt;&lt;SPAN style="COLOR: blue; FONT-SIZE: 10pt; mso-bidi-font-size: 11.0pt; mso-ascii-font-family: calibri; mso-fareast-font-family: calibri; mso-hansi-font-family: calibri; mso-bidi-font-family: calibri"&gt; - Service Microsoft.Office.BusinessApplications.Runtime.Deployment.UpdateService was started.&lt;/SPAN&gt; &lt;/LI&gt;
&lt;LI&gt;&lt;SPAN style="COLOR: blue; FONT-SIZE: 10pt; mso-bidi-font-size: 11.0pt; mso-ascii-font-family: calibri; mso-fareast-font-family: calibri; mso-hansi-font-family: calibri; mso-bidi-font-family: calibri"&gt;&lt;/SPAN&gt;&lt;B style="mso-bidi-font-weight: normal"&gt;&lt;SPAN style="COLOR: blue; FONT-SIZE: 10pt; mso-bidi-font-size: 11.0pt; mso-ascii-font-family: calibri; mso-fareast-font-family: calibri; mso-hansi-font-family: calibri; mso-bidi-font-family: calibri"&gt;Deployment&lt;/SPAN&gt;&lt;/B&gt;&lt;SPAN style="COLOR: blue; FONT-SIZE: 10pt; mso-bidi-font-size: 11.0pt; mso-ascii-font-family: calibri; mso-fareast-font-family: calibri; mso-hansi-font-family: calibri; mso-bidi-font-family: calibri"&gt;- Url:file:///C:/Users/&amp;lt;UserName&amp;gt;/Desktop/Output/ContosoSalesManager.vsto Solution Name:ContosoSalesManager Solution Id:ContosoSalesManager Solution Version:1.0.0.0 Message:Solution download completed successfully.&lt;/SPAN&gt; &lt;/LI&gt;
&lt;LI&gt;&lt;SPAN style="COLOR: blue; FONT-SIZE: 10pt; mso-bidi-font-size: 11.0pt; mso-ascii-font-family: calibri; mso-fareast-font-family: calibri; mso-hansi-font-family: calibri; mso-bidi-font-family: calibri"&gt;&lt;/SPAN&gt;&lt;B style="mso-bidi-font-weight: normal"&gt;&lt;SPAN style="COLOR: blue; FONT-SIZE: 10pt; mso-bidi-font-size: 11.0pt; mso-ascii-font-family: calibri; mso-fareast-font-family: calibri; mso-hansi-font-family: calibri; mso-bidi-font-family: calibri"&gt;Runtime&lt;/SPAN&gt;&lt;/B&gt;&lt;SPAN style="COLOR: blue; FONT-SIZE: 10pt; mso-bidi-font-size: 11.0pt; mso-ascii-font-family: calibri; mso-fareast-font-family: calibri; mso-hansi-font-family: calibri; mso-bidi-font-family: calibri"&gt; - Starting verification process for model C:\Users\&amp;lt;UserName&amp;gt;\AppData\Local\Microsoft\BCS\cont..ager_ae3bf1f59b9d1e0f_0001.0000_0c401f2e52834d92\metadata.xml.&lt;/SPAN&gt; &lt;/LI&gt;
&lt;LI&gt;&lt;SPAN style="COLOR: blue; FONT-SIZE: 10pt; mso-bidi-font-size: 11.0pt; mso-ascii-font-family: calibri; mso-fareast-font-family: calibri; mso-hansi-font-family: calibri; mso-bidi-font-family: calibri"&gt;&lt;/SPAN&gt;&lt;B style="mso-bidi-font-weight: normal"&gt;&lt;SPAN style="COLOR: blue; FONT-SIZE: 10pt; mso-bidi-font-size: 11.0pt; mso-ascii-font-family: calibri; mso-fareast-font-family: calibri; mso-hansi-font-family: calibri; mso-bidi-font-family: calibri"&gt;Business Data&lt;/SPAN&gt;&lt;/B&gt;&lt;SPAN style="COLOR: blue; FONT-SIZE: 10pt; mso-bidi-font-size: 11.0pt; mso-ascii-font-family: calibri; mso-fareast-font-family: calibri; mso-hansi-font-family: calibri; mso-bidi-font-family: calibri"&gt; - Generating WCF Proxy Assembly in a parallel App Domain&lt;/SPAN&gt; &lt;/LI&gt;
&lt;LI&gt;&lt;SPAN style="COLOR: blue; FONT-SIZE: 10pt; mso-bidi-font-size: 11.0pt; mso-ascii-font-family: calibri; mso-fareast-font-family: calibri; mso-hansi-font-family: calibri; mso-bidi-font-family: calibri"&gt;&lt;/SPAN&gt;&lt;B style="mso-bidi-font-weight: normal"&gt;&lt;SPAN style="COLOR: blue; FONT-SIZE: 10pt; mso-bidi-font-size: 11.0pt; mso-ascii-font-family: calibri; mso-fareast-font-family: calibri; mso-hansi-font-family: calibri; mso-bidi-font-family: calibri"&gt;Business Data&lt;/SPAN&gt;&lt;/B&gt;&lt;SPAN style="COLOR: blue; FONT-SIZE: 10pt; mso-bidi-font-size: 11.0pt; mso-ascii-font-family: calibri; mso-fareast-font-family: calibri; mso-hansi-font-family: calibri; mso-bidi-font-family: calibri"&gt; - Trying to discover service document at '&lt;U&gt;http://&amp;lt;Server&amp;gt;:8181/webservice.asmx?wsdl&lt;/U&gt;'&lt;/SPAN&gt; &lt;/LI&gt;
&lt;LI&gt;&lt;SPAN style="COLOR: blue; FONT-SIZE: 10pt; mso-bidi-font-size: 11.0pt; mso-ascii-font-family: calibri; mso-fareast-font-family: calibri; mso-hansi-font-family: calibri; mso-bidi-font-family: calibri"&gt;&lt;/SPAN&gt;&lt;B style="mso-bidi-font-weight: normal"&gt;&lt;SPAN style="COLOR: blue; FONT-SIZE: 10pt; mso-bidi-font-size: 11.0pt; mso-ascii-font-family: calibri; mso-fareast-font-family: calibri; mso-hansi-font-family: calibri; mso-bidi-font-family: calibri"&gt;Business Data&lt;/SPAN&gt;&lt;/B&gt;&lt;SPAN style="COLOR: blue; FONT-SIZE: 10pt; mso-bidi-font-size: 11.0pt; mso-ascii-font-family: calibri; mso-fareast-font-family: calibri; mso-hansi-font-family: calibri; mso-bidi-font-family: calibri"&gt; - Compiling proxy was success, will retrieve the assembly.&lt;/SPAN&gt; &lt;/LI&gt;
&lt;LI&gt;&lt;SPAN style="COLOR: blue; FONT-SIZE: 10pt; mso-bidi-font-size: 11.0pt; mso-ascii-font-family: calibri; mso-fareast-font-family: calibri; mso-hansi-font-family: calibri; mso-bidi-font-family: calibri"&gt;&lt;/SPAN&gt;&lt;B style="mso-bidi-font-weight: normal"&gt;&lt;SPAN style="COLOR: blue; FONT-SIZE: 10pt; mso-bidi-font-size: 11.0pt; mso-ascii-font-family: calibri; mso-fareast-font-family: calibri; mso-hansi-font-family: calibri; mso-bidi-font-family: calibri"&gt;Runtime&lt;/SPAN&gt;&lt;/B&gt;&lt;SPAN style="COLOR: blue; FONT-SIZE: 10pt; mso-bidi-font-size: 11.0pt; mso-ascii-font-family: calibri; mso-fareast-font-family: calibri; mso-hansi-font-family: calibri; mso-bidi-font-family: calibri"&gt; - Set to Verification Complete for the solution ContosoSalesManager.&lt;/SPAN&gt; &lt;/LI&gt;
&lt;LI&gt;&lt;SPAN style="COLOR: blue; FONT-SIZE: 10pt; mso-bidi-font-size: 11.0pt; mso-ascii-font-family: calibri; mso-fareast-font-family: calibri; mso-hansi-font-family: calibri; mso-bidi-font-family: calibri"&gt;&lt;/SPAN&gt;&lt;B style="mso-bidi-font-weight: normal"&gt;&lt;SPAN style="COLOR: blue; FONT-SIZE: 10pt; mso-bidi-font-size: 11.0pt; mso-ascii-font-family: calibri; mso-fareast-font-family: calibri; mso-hansi-font-family: calibri; mso-bidi-font-family: calibri"&gt;Runtime&lt;/SPAN&gt;&lt;/B&gt;&lt;SPAN style="COLOR: blue; FONT-SIZE: 10pt; mso-bidi-font-size: 11.0pt; mso-ascii-font-family: calibri; mso-fareast-font-family: calibri; mso-hansi-font-family: calibri; mso-bidi-font-family: calibri"&gt; - BCSSync with PID: 4020 was requested to spawn a new instance and shutdown.&lt;/SPAN&gt; &lt;/LI&gt;
&lt;LI&gt;&lt;SPAN style="COLOR: blue; FONT-SIZE: 10pt; mso-bidi-font-size: 11.0pt; mso-ascii-font-family: calibri; mso-fareast-font-family: calibri; mso-hansi-font-family: calibri; mso-bidi-font-family: calibri"&gt;&lt;/SPAN&gt;&lt;B style="mso-bidi-font-weight: normal"&gt;&lt;SPAN style="COLOR: blue; FONT-SIZE: 10pt; mso-bidi-font-size: 11.0pt; mso-ascii-font-family: calibri; mso-fareast-font-family: calibri; mso-hansi-font-family: calibri; mso-bidi-font-family: calibri"&gt;Runtime&lt;/SPAN&gt;&lt;/B&gt;&lt;SPAN style="COLOR: blue; FONT-SIZE: 10pt; mso-bidi-font-size: 11.0pt; mso-ascii-font-family: calibri; mso-fareast-font-family: calibri; mso-hansi-font-family: calibri; mso-bidi-font-family: calibri"&gt; - BCSSync started with PID: 4068, integrity level: 8192 and command line: ""C:\Program Files (x86)\Microsoft Office\Office14\BCSSync.exe" /Restart /Activation /RestartApps".&lt;/SPAN&gt; &lt;/LI&gt;
&lt;LI&gt;&lt;SPAN style="COLOR: blue; FONT-SIZE: 10pt; mso-bidi-font-size: 11.0pt; mso-ascii-font-family: calibri; mso-fareast-font-family: calibri; mso-hansi-font-family: calibri; mso-bidi-font-family: calibri"&gt;&lt;/SPAN&gt;&lt;B style="mso-bidi-font-weight: normal"&gt;&lt;SPAN style="COLOR: blue; FONT-SIZE: 10pt; mso-bidi-font-size: 11.0pt; mso-ascii-font-family: calibri; mso-fareast-font-family: calibri; mso-hansi-font-family: calibri; mso-bidi-font-family: calibri"&gt;Runtime&lt;/SPAN&gt;&lt;/B&gt;&lt;SPAN style="COLOR: blue; FONT-SIZE: 10pt; mso-bidi-font-size: 11.0pt; mso-ascii-font-family: calibri; mso-fareast-font-family: calibri; mso-hansi-font-family: calibri; mso-bidi-font-family: calibri"&gt; - Starting deployment of subscriptions for solution ContosoSalesManager.&lt;/SPAN&gt; &lt;/LI&gt;
&lt;LI&gt;&lt;SPAN style="COLOR: blue; FONT-SIZE: 10pt; mso-bidi-font-size: 11.0pt; mso-ascii-font-family: calibri; mso-fareast-font-family: calibri; mso-hansi-font-family: calibri; mso-bidi-font-family: calibri"&gt;&lt;/SPAN&gt;&lt;B style="mso-bidi-font-weight: normal"&gt;&lt;SPAN style="COLOR: blue; FONT-SIZE: 10pt; mso-bidi-font-size: 11.0pt; mso-ascii-font-family: calibri; mso-fareast-font-family: calibri; mso-hansi-font-family: calibri; mso-bidi-font-family: calibri"&gt;Runtime&lt;/SPAN&gt;&lt;/B&gt;&lt;SPAN style="COLOR: blue; FONT-SIZE: 10pt; mso-bidi-font-size: 11.0pt; mso-ascii-font-family: calibri; mso-fareast-font-family: calibri; mso-hansi-font-family: calibri; mso-bidi-font-family: calibri"&gt; - Verifying subscriptions.&lt;/SPAN&gt; &lt;/LI&gt;
&lt;LI&gt;&lt;SPAN style="COLOR: blue; FONT-SIZE: 10pt; mso-bidi-font-size: 11.0pt; mso-ascii-font-family: calibri; mso-fareast-font-family: calibri; mso-hansi-font-family: calibri; mso-bidi-font-family: calibri"&gt;&lt;/SPAN&gt;&lt;B style="mso-bidi-font-weight: normal"&gt;&lt;SPAN style="COLOR: blue; FONT-SIZE: 10pt; mso-bidi-font-size: 11.0pt; mso-ascii-font-family: calibri; mso-fareast-font-family: calibri; mso-hansi-font-family: calibri; mso-bidi-font-family: calibri"&gt;Runtime&lt;/SPAN&gt;&lt;/B&gt;&lt;SPAN style="COLOR: blue; FONT-SIZE: 10pt; mso-bidi-font-size: 11.0pt; mso-ascii-font-family: calibri; mso-fareast-font-family: calibri; mso-hansi-font-family: calibri; mso-bidi-font-family: calibri"&gt; - Generating subscriptions in cache&lt;/SPAN&gt; &lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;
&lt;P&gt;&lt;SPAN style="COLOR: blue; FONT-SIZE: 10pt; mso-bidi-font-size: 11.0pt; mso-ascii-font-family: calibri; mso-fareast-font-family: calibri; mso-hansi-font-family: calibri; mso-bidi-font-family: calibri"&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;B&gt;Wrapped PST Data Sync logs:&lt;/B&gt; 
&lt;UL&gt;
&lt;LI&gt;&lt;B style="mso-bidi-font-weight: normal"&gt;&lt;SPAN style="COLOR: blue; FONT-SIZE: 10pt; mso-bidi-font-size: 11.0pt; mso-ascii-font-family: calibri; mso-fareast-font-family: calibri; mso-hansi-font-family: calibri; mso-bidi-font-family: calibri"&gt;Runtime&lt;/SPAN&gt;&lt;/B&gt;&lt;SPAN style="COLOR: blue; FONT-SIZE: 10pt; mso-bidi-font-size: 11.0pt; mso-ascii-font-family: calibri; mso-fareast-font-family: calibri; mso-hansi-font-family: calibri; mso-bidi-font-family: calibri"&gt; - Notification is being sent&lt;/SPAN&gt; &lt;/LI&gt;
&lt;LI&gt;&lt;SPAN style="COLOR: blue; FONT-SIZE: 10pt; mso-bidi-font-size: 11.0pt; mso-ascii-font-family: calibri; mso-fareast-font-family: calibri; mso-hansi-font-family: calibri; mso-bidi-font-family: calibri"&gt;&lt;/SPAN&gt;&lt;B style="mso-bidi-font-weight: normal"&gt;&lt;SPAN style="COLOR: blue; FONT-SIZE: 10pt; mso-bidi-font-size: 11.0pt; mso-ascii-font-family: calibri; mso-fareast-font-family: calibri; mso-hansi-font-family: calibri; mso-bidi-font-family: calibri"&gt;Cross Sync -&lt;/SPAN&gt;&lt;/B&gt;&lt;SPAN style="COLOR: blue; FONT-SIZE: 10pt; mso-bidi-font-size: 11.0pt; mso-ascii-font-family: calibri; mso-fareast-font-family: calibri; mso-hansi-font-family: calibri; mso-bidi-font-family: calibri"&gt; Receiving Cache Changed (Direct) Event&lt;/SPAN&gt; &lt;/LI&gt;
&lt;LI&gt;&lt;SPAN style="COLOR: blue; FONT-SIZE: 10pt; mso-bidi-font-size: 11.0pt; mso-ascii-font-family: calibri; mso-fareast-font-family: calibri; mso-hansi-font-family: calibri; mso-bidi-font-family: calibri"&gt;&lt;/SPAN&gt;&lt;B style="mso-bidi-font-weight: normal"&gt;&lt;SPAN style="COLOR: blue; FONT-SIZE: 10pt; mso-bidi-font-size: 11.0pt; mso-ascii-font-family: calibri; mso-fareast-font-family: calibri; mso-hansi-font-family: calibri; mso-bidi-font-family: calibri"&gt;Runtime -&lt;/SPAN&gt;&lt;/B&gt;&lt;SPAN style="COLOR: blue; FONT-SIZE: 10pt; mso-bidi-font-size: 11.0pt; mso-ascii-font-family: calibri; mso-fareast-font-family: calibri; mso-hansi-font-family: calibri; mso-bidi-font-family: calibri"&gt; 17 direct change notifications processed at 10:42:11.0782575&lt;/SPAN&gt; &lt;/LI&gt;
&lt;LI&gt;&lt;SPAN style="COLOR: blue; FONT-SIZE: 10pt; mso-bidi-font-size: 11.0pt; mso-ascii-font-family: calibri; mso-fareast-font-family: calibri; mso-hansi-font-family: calibri; mso-bidi-font-family: calibri"&gt;&lt;/SPAN&gt;&lt;B style="mso-bidi-font-weight: normal"&gt;&lt;SPAN style="COLOR: blue; FONT-SIZE: 10pt; mso-bidi-font-size: 11.0pt; mso-ascii-font-family: calibri; mso-fareast-font-family: calibri; mso-hansi-font-family: calibri; mso-bidi-font-family: calibri"&gt;Cross Sync -&lt;/SPAN&gt;&lt;/B&gt;&lt;SPAN style="COLOR: blue; FONT-SIZE: 10pt; mso-bidi-font-size: 11.0pt; mso-ascii-font-family: calibri; mso-fareast-font-family: calibri; mso-hansi-font-family: calibri; mso-bidi-font-family: calibri"&gt; BCS/PST synchronization: Changing 1 Outlook items with information from item 'e83807ab-4748-4a36-ba32-ab62a9aafd78' IsDeleted=False .&lt;/SPAN&gt; &lt;/LI&gt;
&lt;LI&gt;&lt;SPAN style="COLOR: blue; FONT-SIZE: 10pt; mso-bidi-font-size: 11.0pt; mso-ascii-font-family: calibri; mso-fareast-font-family: calibri; mso-hansi-font-family: calibri; mso-bidi-font-family: calibri"&gt;&lt;/SPAN&gt;&lt;B style="mso-bidi-font-weight: normal"&gt;&lt;SPAN style="COLOR: blue; FONT-SIZE: 10pt; mso-bidi-font-size: 11.0pt; mso-ascii-font-family: calibri; mso-fareast-font-family: calibri; mso-hansi-font-family: calibri; mso-bidi-font-family: calibri"&gt;Cross Sync -&lt;/SPAN&gt;&lt;/B&gt;&lt;SPAN style="COLOR: blue; FONT-SIZE: 10pt; mso-bidi-font-size: 11.0pt; mso-ascii-font-family: calibri; mso-fareast-font-family: calibri; mso-hansi-font-family: calibri; mso-bidi-font-family: calibri"&gt; BCS/PST synchronization: Folder 'ContosoCustomerFolderID' is scheduled to be synchronized.&lt;/SPAN&gt; &lt;/LI&gt;
&lt;LI&gt;&lt;SPAN style="COLOR: blue; FONT-SIZE: 10pt; mso-bidi-font-size: 11.0pt; mso-ascii-font-family: calibri; mso-fareast-font-family: calibri; mso-hansi-font-family: calibri; mso-bidi-font-family: calibri"&gt;&lt;/SPAN&gt;&lt;B style="mso-bidi-font-weight: normal"&gt;&lt;SPAN style="COLOR: blue; FONT-SIZE: 10pt; mso-bidi-font-size: 11.0pt; mso-ascii-font-family: calibri; mso-fareast-font-family: calibri; mso-hansi-font-family: calibri; mso-bidi-font-family: calibri"&gt;Cross Sync -&lt;/SPAN&gt;&lt;/B&gt;&lt;SPAN style="COLOR: blue; FONT-SIZE: 10pt; mso-bidi-font-size: 11.0pt; mso-ascii-font-family: calibri; mso-fareast-font-family: calibri; mso-hansi-font-family: calibri; mso-bidi-font-family: calibri"&gt; BCS/PST synchronization: Folder state changed to 'vfId=ContosoCustomerFolderID, status=resync, token=8973, exception=null'.&lt;/SPAN&gt; &lt;/LI&gt;
&lt;LI&gt;&lt;SPAN style="COLOR: blue; FONT-SIZE: 10pt; mso-bidi-font-size: 11.0pt; mso-ascii-font-family: calibri; mso-fareast-font-family: calibri; mso-hansi-font-family: calibri; mso-bidi-font-family: calibri"&gt;&lt;/SPAN&gt;&lt;B style="mso-bidi-font-weight: normal"&gt;&lt;SPAN style="COLOR: blue; FONT-SIZE: 10pt; mso-bidi-font-size: 11.0pt; mso-ascii-font-family: calibri; mso-fareast-font-family: calibri; mso-hansi-font-family: calibri; mso-bidi-font-family: calibri"&gt;Cross Sync -&lt;/SPAN&gt;&lt;/B&gt;&lt;SPAN style="COLOR: blue; FONT-SIZE: 10pt; mso-bidi-font-size: 11.0pt; mso-ascii-font-family: calibri; mso-fareast-font-family: calibri; mso-hansi-font-family: calibri; mso-bidi-font-family: calibri"&gt; Copied Syncstamp 2010-04-28 17:45:50Z for folder ContosoCustomerFolderID ito XS_FOLDER record&lt;/SPAN&gt; &lt;/LI&gt;
&lt;LI&gt;&lt;SPAN style="COLOR: blue; FONT-SIZE: 10pt; mso-bidi-font-size: 11.0pt; mso-ascii-font-family: calibri; mso-fareast-font-family: calibri; mso-hansi-font-family: calibri; mso-bidi-font-family: calibri"&gt;&lt;/SPAN&gt;&lt;B style="mso-bidi-font-weight: normal"&gt;&lt;SPAN style="COLOR: blue; FONT-SIZE: 10pt; mso-bidi-font-size: 11.0pt; mso-ascii-font-family: calibri; mso-fareast-font-family: calibri; mso-hansi-font-family: calibri; mso-bidi-font-family: calibri"&gt;Cross Sync -&lt;/SPAN&gt;&lt;/B&gt;&lt;SPAN style="COLOR: blue; FONT-SIZE: 10pt; mso-bidi-font-size: 11.0pt; mso-ascii-font-family: calibri; mso-fareast-font-family: calibri; mso-hansi-font-family: calibri; mso-bidi-font-family: calibri"&gt; BCS/PST synchronization: Completed synchronization of folders: ContosoCustomerFolderID,&lt;/SPAN&gt; &lt;/LI&gt;
&lt;LI&gt;&lt;SPAN style="COLOR: blue; FONT-SIZE: 10pt; mso-bidi-font-size: 11.0pt; mso-ascii-font-family: calibri; mso-fareast-font-family: calibri; mso-hansi-font-family: calibri; mso-bidi-font-family: calibri"&gt;&lt;/SPAN&gt;&lt;B style="mso-bidi-font-weight: normal"&gt;&lt;SPAN style="COLOR: blue; FONT-SIZE: 10pt; mso-bidi-font-size: 11.0pt; mso-ascii-font-family: calibri; mso-fareast-font-family: calibri; mso-hansi-font-family: calibri; mso-bidi-font-family: calibri"&gt;Cross Sync -&lt;/SPAN&gt;&lt;/B&gt;&lt;SPAN style="COLOR: blue; FONT-SIZE: 10pt; mso-bidi-font-size: 11.0pt; mso-ascii-font-family: calibri; mso-fareast-font-family: calibri; mso-hansi-font-family: calibri; mso-bidi-font-family: calibri"&gt; Syncstamp for folder ContosoCustomerFolderID is set to 2010-04-28 17:45:51Z&lt;/SPAN&gt; &lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;
&lt;P&gt;&lt;SPAN style="COLOR: blue; FONT-SIZE: 10pt; mso-bidi-font-size: 11.0pt; mso-ascii-font-family: calibri; mso-fareast-font-family: calibri; mso-hansi-font-family: calibri; mso-bidi-font-family: calibri"&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P mce_keep="true"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P mce_keep="true"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P mce_keep="true"&gt;&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;
&lt;DIV style="LINE-HEIGHT: normal; MARGIN-BOTTOM: 0pt" class=MsoNormal&gt;&lt;B&gt;LOB communication logs:&lt;/B&gt;&lt;/DIV&gt;
&lt;UL&gt;
&lt;LI&gt;
&lt;DIV style="LINE-HEIGHT: normal; MARGIN-BOTTOM: 0pt" class=MsoNormal&gt;&lt;B style="mso-bidi-font-weight: normal"&gt;&lt;SPAN style="COLOR: blue; FONT-SIZE: 10pt; mso-bidi-font-size: 11.0pt; mso-ascii-font-family: calibri; mso-fareast-font-family: calibri; mso-hansi-font-family: calibri; mso-bidi-font-family: calibri"&gt;Runtime -&lt;/SPAN&gt;&lt;/B&gt;&lt;SPAN style="COLOR: blue; FONT-SIZE: 10pt; mso-bidi-font-size: 11.0pt; mso-ascii-font-family: calibri; mso-fareast-font-family: calibri; mso-hansi-font-family: calibri; mso-bidi-font-family: calibri"&gt; Data change detected; restarting synchronization loop.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/LI&gt;
&lt;LI&gt;
&lt;DIV style="LINE-HEIGHT: normal; MARGIN-BOTTOM: 0pt" class=MsoNormal&gt;&lt;SPAN style="COLOR: blue; FONT-SIZE: 10pt; mso-bidi-font-size: 11.0pt; mso-ascii-font-family: calibri; mso-fareast-font-family: calibri; mso-hansi-font-family: calibri; mso-bidi-font-family: calibri"&gt;&lt;/SPAN&gt;&lt;B style="mso-bidi-font-weight: normal"&gt;&lt;SPAN style="COLOR: blue; FONT-SIZE: 10pt; mso-bidi-font-size: 11.0pt; mso-ascii-font-family: calibri; mso-fareast-font-family: calibri; mso-hansi-font-family: calibri; mso-bidi-font-family: calibri"&gt;Runtime -&lt;/SPAN&gt;&lt;/B&gt;&lt;SPAN style="COLOR: blue; FONT-SIZE: 10pt; mso-bidi-font-size: 11.0pt; mso-ascii-font-family: calibri; mso-fareast-font-family: calibri; mso-hansi-font-family: calibri; mso-bidi-font-family: calibri"&gt; Refreshing subscription AWWSExampleCustomerSubscription with results of query AWWSExampleCustomerQuery&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/LI&gt;
&lt;LI&gt;
&lt;DIV style="LINE-HEIGHT: normal; MARGIN-BOTTOM: 0pt" class=MsoNormal&gt;&lt;SPAN style="COLOR: blue; FONT-SIZE: 10pt; mso-bidi-font-size: 11.0pt; mso-ascii-font-family: calibri; mso-fareast-font-family: calibri; mso-hansi-font-family: calibri; mso-bidi-font-family: calibri"&gt;&lt;/SPAN&gt;&lt;B style="mso-bidi-font-weight: normal"&gt;&lt;SPAN style="COLOR: blue; FONT-SIZE: 10pt; mso-bidi-font-size: 11.0pt; mso-ascii-font-family: calibri; mso-fareast-font-family: calibri; mso-hansi-font-family: calibri; mso-bidi-font-family: calibri"&gt;Business Data -&lt;/SPAN&gt;&lt;/B&gt;&lt;SPAN style="COLOR: blue; FONT-SIZE: 10pt; mso-bidi-font-size: 11.0pt; mso-ascii-font-family: calibri; mso-fareast-font-family: calibri; mso-hansi-font-family: calibri; mso-bidi-font-family: calibri"&gt; Opening connection to SystemInstance: &lt;U&gt;http://&amp;lt;Server&amp;gt;:8080/webservice.asmx?wsdl&lt;/U&gt;&lt;/SPAN&gt;&lt;B style="mso-bidi-font-weight: normal"&gt;&lt;SPAN style="COLOR: blue; FONT-SIZE: 10pt; mso-bidi-font-size: 11.0pt; mso-ascii-font-family: calibri; mso-fareast-font-family: calibri; mso-hansi-font-family: calibri; mso-bidi-font-family: calibri"&gt;&lt;/SPAN&gt;&lt;/B&gt;&lt;/DIV&gt;&lt;/LI&gt;
&lt;LI&gt;
&lt;DIV style="LINE-HEIGHT: normal; MARGIN-BOTTOM: 0pt" class=MsoNormal&gt;&lt;B style="mso-bidi-font-weight: normal"&gt;&lt;SPAN style="COLOR: blue; FONT-SIZE: 10pt; mso-bidi-font-size: 11.0pt; mso-ascii-font-family: calibri; mso-fareast-font-family: calibri; mso-hansi-font-family: calibri; mso-bidi-font-family: calibri"&gt;Business Data -&lt;/SPAN&gt;&lt;/B&gt;&lt;SPAN style="COLOR: blue; FONT-SIZE: 10pt; mso-bidi-font-size: 11.0pt; mso-ascii-font-family: calibri; mso-fareast-font-family: calibri; mso-hansi-font-family: calibri; mso-bidi-font-family: calibri"&gt; Creating ClientBase object with type : BCSServiceProxy.WebServiceSoapClient&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/LI&gt;
&lt;LI&gt;
&lt;DIV style="LINE-HEIGHT: normal; MARGIN-BOTTOM: 0pt" class=MsoNormal&gt;&lt;SPAN style="COLOR: blue; FONT-SIZE: 10pt; mso-bidi-font-size: 11.0pt; mso-ascii-font-family: calibri; mso-fareast-font-family: calibri; mso-hansi-font-family: calibri; mso-bidi-font-family: calibri"&gt;&lt;/SPAN&gt;&lt;B style="mso-bidi-font-weight: normal"&gt;&lt;SPAN style="COLOR: blue; FONT-SIZE: 10pt; mso-bidi-font-size: 11.0pt; mso-ascii-font-family: calibri; mso-fareast-font-family: calibri; mso-hansi-font-family: calibri; mso-bidi-font-family: calibri"&gt;Business Data -&lt;/SPAN&gt;&lt;/B&gt;&lt;SPAN style="COLOR: blue; FONT-SIZE: 10pt; mso-bidi-font-size: 11.0pt; mso-ascii-font-family: calibri; mso-fareast-font-family: calibri; mso-hansi-font-family: calibri; mso-bidi-font-family: calibri"&gt; Using WCF authentication mode : PassThrough&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/LI&gt;
&lt;LI&gt;
&lt;DIV style="LINE-HEIGHT: normal; MARGIN-BOTTOM: 0pt" class=MsoNormal&gt;&lt;SPAN style="COLOR: blue; FONT-SIZE: 10pt; mso-bidi-font-size: 11.0pt; mso-ascii-font-family: calibri; mso-fareast-font-family: calibri; mso-hansi-font-family: calibri; mso-bidi-font-family: calibri"&gt;&lt;/SPAN&gt;&lt;B style="mso-bidi-font-weight: normal"&gt;&lt;SPAN style="COLOR: blue; FONT-SIZE: 10pt; mso-bidi-font-size: 11.0pt; mso-ascii-font-family: calibri; mso-fareast-font-family: calibri; mso-hansi-font-family: calibri; mso-bidi-font-family: calibri"&gt;Business Data -&lt;/SPAN&gt;&lt;/B&gt;&lt;SPAN style="COLOR: blue; FONT-SIZE: 10pt; mso-bidi-font-size: 11.0pt; mso-ascii-font-family: calibri; mso-fareast-font-family: calibri; mso-hansi-font-family: calibri; mso-bidi-font-family: calibri"&gt; Executing MethodInstance '2147484216' representing Web Method 'GetCustomers'&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/LI&gt;
&lt;LI&gt;
&lt;DIV style="LINE-HEIGHT: normal; MARGIN-BOTTOM: 0pt" class=MsoNormal&gt;&lt;SPAN style="COLOR: blue; FONT-SIZE: 10pt; mso-bidi-font-size: 11.0pt; mso-ascii-font-family: calibri; mso-fareast-font-family: calibri; mso-hansi-font-family: calibri; mso-bidi-font-family: calibri"&gt;&lt;/SPAN&gt;&lt;B style="mso-bidi-font-weight: normal"&gt;&lt;SPAN style="COLOR: blue; FONT-SIZE: 10pt; mso-bidi-font-size: 11.0pt; mso-ascii-font-family: calibri; mso-fareast-font-family: calibri; mso-hansi-font-family: calibri; mso-bidi-font-family: calibri"&gt;Business Data&lt;/SPAN&gt;&lt;/B&gt;&lt;SPAN style="COLOR: blue; FONT-SIZE: 10pt; mso-bidi-font-size: 11.0pt; mso-ascii-font-family: calibri; mso-fareast-font-family: calibri; mso-hansi-font-family: calibri; mso-bidi-font-family: calibri"&gt; - Closing connection to SystemInstance: &lt;/SPAN&gt;&lt;FONT color=#0000ff&gt;&lt;SPAN&gt;&lt;U&gt;http://&amp;lt;Server&amp;gt;:8080/webservice.asmx?wsdl&lt;/U&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;/LI&gt;
&lt;LI&gt;
&lt;DIV style="LINE-HEIGHT: normal; MARGIN-BOTTOM: 0pt" class=MsoNormal&gt;&lt;FONT color=#0000ff&gt;&lt;SPAN style="COLOR: blue; FONT-SIZE: 10pt; mso-bidi-font-size: 11.0pt; mso-ascii-font-family: calibri; mso-fareast-font-family: calibri; mso-hansi-font-family: calibri; mso-bidi-font-family: calibri"&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;B style="mso-bidi-font-weight: normal"&gt;&lt;SPAN style="COLOR: blue; FONT-SIZE: 10pt; mso-bidi-font-size: 11.0pt; mso-ascii-font-family: calibri; mso-fareast-font-family: calibri; mso-hansi-font-family: calibri; mso-bidi-font-family: calibri"&gt;Business Data -&lt;/SPAN&gt;&lt;/B&gt;&lt;SPAN style="COLOR: blue; FONT-SIZE: 10pt; mso-bidi-font-size: 11.0pt; mso-ascii-font-family: calibri; mso-fareast-font-family: calibri; mso-hansi-font-family: calibri; mso-bidi-font-family: calibri"&gt; Exiting out of method to enumerator executor &lt;/SPAN&gt;&lt;/DIV&gt;
&lt;P mce_keep="true"&gt;&amp;nbsp;&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;
&lt;P&gt;Most of the BCS logs are pretty descriptive and intuitive. Hopefully this blog post can act as a starting point for debugging issues while developing BCS solutions.&lt;/P&gt;
&lt;P&gt;&lt;B&gt;&lt;/B&gt;&lt;/P&gt;
&lt;P&gt;- Sreekanth Lingannapeta &lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10009256" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/b/bcs/archive/tags/Debug/">Debug</category><category domain="http://blogs.msdn.com/b/bcs/archive/tags/Runtime/">Runtime</category><category domain="http://blogs.msdn.com/b/bcs/archive/tags/Log/">Log</category><category domain="http://blogs.msdn.com/b/bcs/archive/tags/Trace/">Trace</category></item><item><title>BCS Team Channel:  Secure Store Service</title><link>http://blogs.msdn.com/b/bcs/archive/2010/05/06/bcs-team-channel-secure-store-service.aspx</link><pubDate>Thu, 06 May 2010 22:55:31 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10008819</guid><dc:creator>lionelro</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blogs.msdn.com/b/bcs/rsscomments.aspx?WeblogPostID=10008819</wfw:commentRss><comments>http://blogs.msdn.com/b/bcs/archive/2010/05/06/bcs-team-channel-secure-store-service.aspx#comments</comments><description>&lt;p&gt;We just uploaded the next installment on the BCS Team Channel. In this video Sanjay Rama takes you through a quick introduction and demo of the Secure Store Service.&lt;/p&gt;  &lt;p&gt;Secure Store Service is the new single sign on service in SharePoint 2010. It provides the capability of storing secure data (i.e. A set of credentials) and the ability to map this data to a specific identity or a group of identities.The most common scenario for Secure Store Service is an application trying to authenticate against a system in which the current logged in user is known differently or has a different account for authentication. It’s a shared service in SharePoint 2010 and can be used to store credentials of multiple external systems.&lt;/p&gt;  &lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;div style="padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; float: none; padding-top: 0px" id="scid:5737277B-5D6D-4f48-ABFC-DD9C333F4C5D:88ae6726-fb26-4fde-b656-054bfeac407e" class="wlWriterEditableSmartContent"&gt;&lt;div id="b624c03e-e0b4-412c-86aa-84ea65b5e4f7" style="margin: 0px; padding: 0px; display: inline;"&gt;&lt;div&gt;&lt;a href="http://www.youtube.com/watch?v=2kHMY-fl4WU&amp;amp;hl=en&amp;amp;fs=1" target="_new"&gt;&lt;img src="http://blogs.msdn.com/blogfiles/bcs/WindowsLiveWriter/BCSTeamChannelSecureStoreService_DFF0/videoa6e2fb6cec8a.jpg" style="border-style: none" galleryimg="no" onload="var downlevelDiv = document.getElementById('b624c03e-e0b4-412c-86aa-84ea65b5e4f7'); downlevelDiv.innerHTML = &amp;quot;&amp;lt;div&amp;gt;&amp;lt;object width=\&amp;quot;425\&amp;quot; height=\&amp;quot;355\&amp;quot;&amp;gt;&amp;lt;param name=\&amp;quot;movie\&amp;quot; value=\&amp;quot;http://www.youtube.com/v/2kHMY-fl4WU&amp;amp;hl=en&amp;amp;fs=1&amp;amp;hl=en\&amp;quot;&amp;gt;&amp;lt;\/param&amp;gt;&amp;lt;embed src=\&amp;quot;http://www.youtube.com/v/2kHMY-fl4WU&amp;amp;hl=en&amp;amp;fs=1&amp;amp;hl=en\&amp;quot; type=\&amp;quot;application/x-shockwave-flash\&amp;quot; width=\&amp;quot;425\&amp;quot; height=\&amp;quot;355\&amp;quot;&amp;gt;&amp;lt;\/embed&amp;gt;&amp;lt;\/object&amp;gt;&amp;lt;\/div&amp;gt;&amp;quot;;" alt=""&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10008819" width="1" height="1"&gt;</description></item><item><title>Why it’s important to define filters for a good picking experience</title><link>http://blogs.msdn.com/b/bcs/archive/2010/05/05/why-it-s-important-to-define-filters-for-a-good-picking-experience.aspx</link><pubDate>Wed, 05 May 2010 22:29:35 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10008104</guid><dc:creator>lionelro</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blogs.msdn.com/b/bcs/rsscomments.aspx?WeblogPostID=10008104</wfw:commentRss><comments>http://blogs.msdn.com/b/bcs/archive/2010/05/05/why-it-s-important-to-define-filters-for-a-good-picking-experience.aspx#comments</comments><description>&lt;p&gt;Hi this is Juan Balmori with another post for the BCS blog. This is a follow up to my previous post, about the &lt;a href="http://blogs.msdn.com/bcs/archive/2010/02/15/surfacing-business-data-in-word-2010-using-external-data-columns-and-the-external-item-content-control.aspx"&gt;external item picker&lt;/a&gt;. There is a problematic scenario that you may face: You are searching for an external item on the picker dialog that you are 100% sure it exists on the external system but the dialog does not seem to work properly and is not finding it. Worse it’s not even filtering by the specified search criteria.&lt;/p&gt;  &lt;p&gt;For example in the following image I am searching for an ‘Artist’ whose name is ‘Kim’ and evidently exists as you can see on the search results but the picker is:&lt;/p&gt;  &lt;ol&gt;   &lt;li&gt;Effectively showing Kim &lt;/li&gt;    &lt;li&gt;But is also showing a bunch of additional results that don’t even meet the search criteria &lt;/li&gt;    &lt;li&gt;On top of that, I get a strange error message telling me that ‘Search criteria cannot be met as Filters are not defined for the External Content Type. Contact your system administrator’ &lt;/li&gt; &lt;/ol&gt;  &lt;p&gt;What’s going on?&lt;/p&gt;  &lt;p&gt;&lt;a href="http://blogs.msdn.com/blogfiles/bcs/WindowsLiveWriter/Whyitsimportanttodefinefiltersforagoodpi_D9DD/clip_image002_2.jpg"&gt;&lt;img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="clip_image002" border="0" alt="clip_image002" src="http://blogs.msdn.com/blogfiles/bcs/WindowsLiveWriter/Whyitsimportanttodefinefiltersforagoodpi_D9DD/clip_image002_thumb.jpg" width="534" height="376" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;Well, as the error message is suggesting, the problem is that in this example the “Artist” External Content Type (ECT) does not have a filter defined and when an ECT lacks a Filter, the default behavior is to show the first 200 items and we cannot filter/narrow the search results. And you are going to get that warning. &lt;/p&gt;  &lt;p&gt;Moreover, imagine a scenario in which you have thousands of items to pick from; you will need to have a good set of filters defined on your ECT so that your users can find the items they are searching for, and/or quickly narrow their search to the item they are looking for. &lt;/p&gt;  &lt;p&gt;So as a general rule of thumb, I strongly recommend you to always define at least one filter on your ECTs.&lt;/p&gt;  &lt;p&gt;Fortunately, filter definitions can be done in SharePoint Designer (SPD) and it’s really easy to do it, I will describe how. Filters need to be defined on the read list operations (aka finders, as named in the BDC metadata model). There is a specific dialog to configure a filter for the read list operation as you can see on this image. (Double-click on the read list operation and then hit ‘next’ to get here)&lt;/p&gt;  &lt;p&gt;&lt;a href="http://blogs.msdn.com/blogfiles/bcs/WindowsLiveWriter/Whyitsimportanttodefinefiltersforagoodpi_D9DD/clip_image004_2.jpg"&gt;&lt;img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="clip_image004" border="0" alt="clip_image004" src="http://blogs.msdn.com/blogfiles/bcs/WindowsLiveWriter/Whyitsimportanttodefinefiltersforagoodpi_D9DD/clip_image004_thumb.jpg" width="534" height="402" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;Then follow these instructions:&lt;/p&gt;  &lt;ol&gt;   &lt;li&gt;You need to click on the ‘Add Filter Parameter’ button &lt;/li&gt;    &lt;li&gt;Click on the ‘(Click to Add)’ link on the Properties panel to configure the picker. You’ll find the following dialog:&lt;a href="http://blogs.msdn.com/blogfiles/bcs/WindowsLiveWriter/Whyitsimportanttodefinefiltersforagoodpi_D9DD/clip_image006_2.jpg"&gt;&lt;img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="clip_image006" border="0" alt="clip_image006" src="http://blogs.msdn.com/blogfiles/bcs/WindowsLiveWriter/Whyitsimportanttodefinefiltersforagoodpi_D9DD/clip_image006_thumb.jpg" width="474" height="364" /&gt;&lt;/a&gt;       &lt;br /&gt;&lt;/li&gt;    &lt;li&gt;Give the filter a name on the New Filter text box &lt;/li&gt;    &lt;li&gt;Select a filter field to be used. In this example I want to filter by ‘Artist Name’ so I select that field. &lt;/li&gt;    &lt;li&gt;Define the type of filter to use. For a complete list of filter types and how they work please refer to &lt;a href="http://msdn.microsoft.com/en-us/library/ee556392(office.14).aspx"&gt;this article&lt;/a&gt;. It’s worth mentioning two frequently used filters types: Comparison and wildcard. For this example, the artist name can have multiple words. (i.e. ‘Franz Kohl’), let’s see what happens when I use each filter type:       &lt;ul&gt;       &lt;li&gt;&lt;b&gt;Comparison&lt;/b&gt;: If you use the ‘equal’ operator we’ll expect the user to type the full artist name to find items. Hence it will only filter if the user types ‘Franz Kohl’, but will not work with either just ‘Franz’ or with just ‘Kohl’ &lt;/li&gt;        &lt;li&gt;&lt;b&gt;Wildcard&lt;/b&gt;: If you use the ‘wildcard’ type then the filter will be send to the external system with wildcards. In this case it will filter if the user types ‘Franz’ or ‘Kohl’ (we’ll return all the artists that have the string ‘Franz’ as part of the name or vice-versa). &lt;/li&gt;     &lt;/ul&gt;   &lt;/li&gt;    &lt;li&gt;Finally, identify what to do if the filter value is null. You need to select this option if you have an external list associated with this ECT. Otherwise you’ll see no items when browsing the list (because the filter value will be null). &lt;/li&gt;    &lt;li&gt;You can add more filter parameters as needed and add a AND/OR behavior to it. For instance, we are interested to filter by last name and zone. &lt;/li&gt; &lt;/ol&gt;  &lt;p&gt;&lt;b&gt;One very important note regarding the design experience&lt;/b&gt;: when integrating specifically with databases, our tools generate the necessary queries to enable the designed filters. If you are using other types of BCS data sources such as web services, WCF or .NET assemblies you need to make sure that your filters are part of their API, before you can model them in SPD.&lt;/p&gt;  &lt;p&gt;Here is an example of how the picker dialog is going to look like when we select a ‘wildcard’ type of filter on the artist name and we search for ‘Karen’&lt;/p&gt;  &lt;p&gt;&lt;a href="http://blogs.msdn.com/blogfiles/bcs/WindowsLiveWriter/Whyitsimportanttodefinefiltersforagoodpi_D9DD/clip_image008_2.jpg"&gt;&lt;img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="clip_image008" border="0" alt="clip_image008" src="http://blogs.msdn.com/blogfiles/bcs/WindowsLiveWriter/Whyitsimportanttodefinefiltersforagoodpi_D9DD/clip_image008_thumb.jpg" width="534" height="376" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;Once multiple filters are defined on the ECT, the external item picker algorithm to apply those filters is the following: it appends the resulting items of each filter of each read list operation of the ECT. So to be more efficient we recommend not having a high number of filters/finders on each ECT as this can potentially result in calling a high number of operations on the ECT.&lt;/p&gt;  &lt;p&gt;In summary, the most important piece of information for this post is: Always define filters on your ECT, especially when you are going to use it for picking purposes. &lt;/p&gt;  &lt;p&gt;Thanks for reading!&lt;/p&gt;  &lt;p&gt;&lt;a name="_GoBack"&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;&lt;b&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p&gt;- Juan Balmori, Program Manager&lt;/p&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10008104" width="1" height="1"&gt;</description></item><item><title>Searching External Data in SharePoint 2010 Using Business Connectivity Services</title><link>http://blogs.msdn.com/b/bcs/archive/2010/04/30/searching-external-data-in-sharepoint-2010-using-business-connectivity-services.aspx</link><pubDate>Fri, 30 Apr 2010 22:10:50 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10005525</guid><dc:creator>lionelro</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blogs.msdn.com/b/bcs/rsscomments.aspx?WeblogPostID=10005525</wfw:commentRss><comments>http://blogs.msdn.com/b/bcs/archive/2010/04/30/searching-external-data-in-sharepoint-2010-using-business-connectivity-services.aspx#comments</comments><description>&lt;p&gt;Eric White posted great content on how to &lt;a href="http://blogs.msdn.com/ericwhite/archive/2010/04/28/searching-external-data-in-sharepoint-2010-using-business-connectivity-services.aspx" target="_blank"&gt;Search External Data in SharePoint 2010 using BCS&lt;/a&gt;. Here is the overview of the post from his blog:&lt;/p&gt;  &lt;h4&gt;Overview&lt;/h4&gt;  &lt;p&gt;This article will examine how to use SharePoint Designer to define an external content type (ECT) and how to set up a search crawl that includes that external data. You will then see how to reduce crawl times for large amounts of data by using incremental crawls. All of this will be done using SharePoint Designer, SharePoint Central Administration and some editing of XML.&lt;/p&gt;  &lt;p&gt;Before beginning, you should have the following:&lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;     &lt;p&gt;Access to SharePoint 2010 Central Administration, including the search service and the business data connectivity service.&lt;/p&gt;   &lt;/li&gt;    &lt;li&gt;     &lt;p&gt;Access to SharePoint Designer.&lt;/p&gt;   &lt;/li&gt;    &lt;li&gt;     &lt;p&gt;A SharePoint 2010 web application with a site collection. For more information, see &lt;a href="http://technet.microsoft.com/en-us/library/cc263094(office.14).aspx"&gt;Create a site collection (Office SharePoint Server)&lt;/a&gt;. You can probably use &lt;b&gt;Sharepoint - 80&lt;/b&gt; for these examples.&lt;/p&gt;   &lt;/li&gt;    &lt;li&gt;     &lt;p&gt;Access to Microsoft SQL Server. You can use the same instance of SQL Server that SharePoint uses.&lt;/p&gt;   &lt;/li&gt;    &lt;li&gt;     &lt;p&gt;A sample database for Microsoft SQL Server (AdventureWorks will be used in these examples. See &lt;a href="http://msftdbprodsamples.codeplex.com/releases/view/24854"&gt;Sample Databases for Microsoft SQL Server 2008R2&lt;/a&gt; to install.)&lt;/p&gt;   &lt;/li&gt; &lt;/ul&gt;  &lt;p&gt;These examples will be more meaningful if you have some general understanding of SQL queries and views. Previous experience with XML will also be helpful. Even without that experience, you should be able to successfully complete all the examples.&lt;/p&gt;  &lt;p&gt;&lt;a href="http://blogs.msdn.com/ericwhite/archive/2010/04/28/searching-external-data-in-sharepoint-2010-using-business-connectivity-services.aspx" target="_blank"&gt;…read more about searching external data using BCS&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;- Lionel Robinson, Program Manager&lt;/p&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10005525" width="1" height="1"&gt;</description></item><item><title>Introduction to System Filters</title><link>http://blogs.msdn.com/b/bcs/archive/2010/04/29/introduction-to-system-filters.aspx</link><pubDate>Fri, 30 Apr 2010 00:14:33 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10004919</guid><dc:creator>lionelro</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blogs.msdn.com/b/bcs/rsscomments.aspx?WeblogPostID=10004919</wfw:commentRss><comments>http://blogs.msdn.com/b/bcs/archive/2010/04/29/introduction-to-system-filters.aspx#comments</comments><description>&lt;p&gt;Filters are used by Microsoft Business Connectivity Service (BCS) to give values to input parameters while invoking a Method on the External System (LobSystem). But there could be some parameters whose values should be provided by the system (example: username, password) and not from the user. Filters that provide values to these input parameters are called System Filters. &lt;/p&gt;  &lt;p&gt;&lt;i&gt;Here is an example Scenario of when to use System Filter: Jim has a web service operation that creates a file. The method takes filename, user name, and password. File name will be passed as user input, but username and password will have to be passed from the system. Jim needs a solution to pass these values without requesting them from the user.&lt;/i&gt;&lt;/p&gt;  &lt;p&gt;&lt;i&gt;&lt;/i&gt;&lt;/p&gt;  &lt;p&gt;&lt;i&gt;Solution: Jim will have to configure username and password filters for the parameters that match username and password. Jim will also have to specify the “SecondarySSOApplicationID” and “SSOProviderImplementation” on the External System Instance, which will be used by the filters to fetch username and password values. This will make the system provide username and password as values to input parameters.&lt;/i&gt;&lt;/p&gt;  &lt;p&gt;The different types of System Filters that are supported are:&lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;&lt;strong&gt;ActivityID (Activity Identifier Filter)        &lt;br /&gt;&lt;/strong&gt;Activity Identifier Filter is used while calling operations on an external system, and the value to be passed as input parameter should represent a context identity of the invoking operation.       &lt;br /&gt;BCS sets a&lt;i&gt; &lt;/i&gt;GUID that represents the current operation context as the value on the input parameter which is associated with the ActivityID filter.&amp;#160;&amp;#160; &lt;br /&gt;&amp;#160; &lt;/li&gt;    &lt;li&gt;&lt;strong&gt;Password (Password Credential Filter)        &lt;br /&gt;&lt;/strong&gt;Password credential filter is used while calling operations on external system and the value to be passed as input parameter should represent a password stored in Secure Store.       &lt;br /&gt;BCS gets the credentials that map to the External System Instance (LobSystemInstance) properties “SecondarySsoApplicationId” and “SsoProviderImplementation”. It uses the password obtained from credentials as the value for the input parameter which is associated with the Password filter. &lt;i&gt;Note: SecondarySSOApplicationId is different from SSOApplicationId, SecondarySSOApplicationId is used by UserName filter and Password filter. For more information read &lt;/i&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/ms550725.aspx"&gt;&lt;i&gt;SecondarySSOApplicationID property on LobSystemInstance&lt;/i&gt;&lt;/a&gt;&lt;i&gt;.        &lt;br /&gt;&amp;#160; &lt;/i&gt;&lt;/li&gt;    &lt;li&gt;&lt;strong&gt;SSOTicket (Single sign on Ticket Filter)        &lt;br /&gt;&lt;/strong&gt;Single sign on ticket filter should be used while calling an operation on the External System and the value to be passed as an input parameter should represent a sign on ticket for the user from the Secure Store. The target service or application can then redeem this ticket to get the user credentials.       &lt;br /&gt;BCS uses the “SSOProviderImplementation” property specified in the External System Instance and requests this provider to issue an SSOTicket. This SSOTicket is passed as the input parameter which is associated with the SSOTicket filter.       &lt;br /&gt;&amp;#160; &lt;/li&gt;    &lt;li&gt;&lt;strong&gt;UserContext (User Context Filter)        &lt;br /&gt;&lt;/strong&gt;User Context Filter should be used while calling an operation on the External System.The value to be passed as an input parameter should represent the user context.       &lt;ul&gt;       &lt;li&gt;In this case, BCS uses the “UserContextType” property on the Filter (FilterDescriptor) to find a value to set on the input parameter. If the “UserContextType” specified is “MachineId”, the value passed to the input parameter will be the unique id for machine’s operating system installation. &lt;/li&gt;        &lt;li&gt;If the “UserContextType” specified is “QualifiedUserName”, the value passed to the input parameter will depend:          &lt;ul&gt;           &lt;li&gt;If the login mode for user is Windows classic, the value will be the windows logon name for the user. This will contain the domain name and the user name (&lt;i&gt;example: domainname /username&lt;/i&gt;). &lt;/li&gt;            &lt;li&gt;If the login mode for user is Claims based, then value passed will be the unique value that identifies the user (&lt;i&gt;example: membership:username, username@provider.com&lt;/i&gt;).               &lt;br /&gt;&amp;#160; &lt;/li&gt;         &lt;/ul&gt;       &lt;/li&gt;     &lt;/ul&gt;   &lt;/li&gt;    &lt;li&gt;&lt;strong&gt;UserCulture (User Culture Filter)        &lt;br /&gt;&lt;/strong&gt;User Culture Filter should be used while calling an operation on the External System and the value to be passed as an input parameter should represent the culture of the user environment invoking the operation.       &lt;br /&gt;BCS uses the “Format” property on the Filter to find a value to set on the input parameter.       &lt;ul&gt;       &lt;li&gt;If the value of the “Format” property is “RFC1766”, the value passed to the input parameter will be the name of the culture. &lt;a href="http://msdn.microsoft.com/en-us/library/system.globalization.cultureinfo.name(v=VS.90).aspx"&gt;Read about name of a culture.&lt;/a&gt; &lt;/li&gt;        &lt;li&gt;If the value of the “Format” property is “TwoLetterISO”, the value passed to the input parameter will be two letter ISO language name of the culture. &lt;a href="http://msdn.microsoft.com/en-us/library/system.globalization.cultureinfo.twoletterisolanguagename(v=VS.90).aspx"&gt;Read about two letter ISO language name of a culture.&lt;/a&gt; &lt;/li&gt;        &lt;li&gt;If the value of the “Format” property is “ThreeLetterISO”, the value passed to the input parameter will be the three letter ISO language name of the culture. &lt;a href="http://msdn.microsoft.com/en-us/library/system.globalization.cultureinfo.threeletterisolanguagename(v=VS.90).aspx"&gt;Read about three letter ISO language name of a culture.&lt;/a&gt; &lt;/li&gt;        &lt;li&gt;If the value of the “Format” property is “ThreeLetterWindows”, the value passed to the input parameter will be the three letter windows language name of the culture. &lt;a href="http://msdn.microsoft.com/en-us/library/system.globalization.cultureinfo.threeletterwindowslanguagename(v=VS.90).aspx"&gt;Read about three letter windows language name of a culture.&lt;/a&gt; &lt;/li&gt;        &lt;li&gt;If the value of the “Format” property is “LCID”, the value passed to the input parameter will be the LCID of the culture.&lt;a href="http://msdn.microsoft.com/en-us/library/system.globalization.cultureinfo.lcid(v=VS.90).aspx"&gt; Read about LCID of a culture.&lt;/a&gt;           &lt;br /&gt;&amp;#160; &lt;/li&gt;     &lt;/ul&gt;   &lt;/li&gt;    &lt;li&gt;&lt;strong&gt;UserName (User Name Credential Filter)        &lt;br /&gt;&lt;/strong&gt;User Name Credential Filter should be used while calling an operation on the External System and the value to be passed as an input parameter should represent the User Name stored in Secure Store.       &lt;br /&gt;BCS gets the credentials that map to the External System Instance properties “SecondarySsoApplicationId” and “SsoProviderImplementation”. It uses the user name obtained from credentials as the value for the input parameter which is associated with the UserName system filter. &lt;i&gt;Note: SecondarySSOApplicationId is different from SSOApplicationId, it’s used by UserName filter and Password filter. For more information read &lt;/i&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/ms550725.aspx"&gt;&lt;i&gt;SecondarySSOApplicationID property on LobSystemInstance&lt;/i&gt;&lt;/a&gt;&lt;i&gt;.        &lt;br /&gt;&amp;#160;&lt;/i&gt; &lt;/li&gt;    &lt;li&gt;&lt;strong&gt;UserProfile (User Profile Filter)        &lt;br /&gt;&lt;/strong&gt;User Profile Filter should be used while calling an operation on the External System and the value to be passed as an input parameter should be a property on the current user’s profile.       &lt;br /&gt;BCS uses the “UserProfileProvider” and the “UserProfilePropertyName” properties specified on the Filter to find a value to set on the input parameter. “UserProfileProvider” is used to fetch the current user’s profile and “UserProfilePropertyName” contains the property name whose value on the user profile should be passed to the input parameter. &lt;/li&gt; &lt;/ul&gt;  &lt;h3&gt;Configuring System Filters&lt;/h3&gt;  &lt;h4&gt;SPD approach:&lt;/h4&gt;  &lt;p&gt;System Filters can be configured for input parameters via SPD. The steps to configure System Filters via SPD are:&lt;/p&gt;  &lt;ol&gt;   &lt;li&gt;Open SPD &lt;/li&gt;    &lt;li&gt;Click on “OpenSite” and open a site. &lt;/li&gt;    &lt;li&gt;Click on “External Content Types” on “Site Objects” pane on the left of SPD. &lt;/li&gt;    &lt;li&gt;Click on “New External Content Type” ribbon button to create new external content type. &lt;/li&gt;    &lt;li&gt;Click on “Operations Design View” ribbon button to create new methods for external content type. &lt;/li&gt;    &lt;li&gt;Click on “Add Connection” button and discover a data source connection. &lt;/li&gt;    &lt;li&gt;Enter the method configuration wizard used to design the operations, by right clicking a data source node and selecting the operation that is required. &lt;/li&gt;    &lt;li&gt;Move to the Input Parameter Configuration to define filters for input parameters. &lt;/li&gt;    &lt;li&gt;Click on the “Click to Add” next to filters to configure filters. The screen shot below shows the link that is used to create filters.&lt;a href="http://blogs.msdn.com/blogfiles/bcs/WindowsLiveWriter/IntroductiontoSystemFilters_A198/clip_image002_2.jpg"&gt;&lt;img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="clip_image002" border="0" alt="clip_image002" src="http://blogs.msdn.com/blogfiles/bcs/WindowsLiveWriter/IntroductiontoSystemFilters_A198/clip_image002_thumb.jpg" width="524" height="437" /&gt;&lt;/a&gt; &lt;/li&gt;    &lt;li&gt;Select New Filter and give it a name. &lt;/li&gt;    &lt;li&gt;Use the Filter Type combo box to choose a System Filter as shown in the screen shot below:      &lt;br /&gt;&lt;a href="http://blogs.msdn.com/blogfiles/bcs/WindowsLiveWriter/IntroductiontoSystemFilters_A198/image_2.png"&gt;&lt;img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="http://blogs.msdn.com/blogfiles/bcs/WindowsLiveWriter/IntroductiontoSystemFilters_A198/image_thumb.png" width="414" height="354" /&gt;&lt;/a&gt; &lt;/li&gt; &lt;/ol&gt;  &lt;h4&gt;Hand Written Approach:&lt;/h4&gt;  &lt;p&gt;System Filters can be configured by making changes to the model file by hand. The steps to follow to configure System Filters are:&lt;/p&gt;  &lt;ol&gt;   &lt;li&gt;Open the Model file. &lt;/li&gt;    &lt;li&gt;Find the method whose input parameters should be configured with system filters. &lt;/li&gt;    &lt;li&gt;Add FilterDescriptors section or modify if one already exist, to add filter descriptors that point to system filters. An example to configure SsoTicket System filter is shown below.      &lt;br /&gt;      &lt;br /&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;; color: blue; font-size: 10pt; mso-bidi-font-size: 11.0pt; mso-bidi-font-family: &amp;#39;Times New Roman&amp;#39;; mso-bidi-theme-font: minor-bidi"&gt;&amp;lt;&lt;/span&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;; color: #a31515; font-size: 10pt; mso-bidi-font-size: 11.0pt; mso-bidi-font-family: &amp;#39;Times New Roman&amp;#39;; mso-bidi-theme-font: minor-bidi"&gt;FilterDescriptors&lt;/span&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;; color: blue; font-size: 10pt; mso-bidi-font-size: 11.0pt; mso-bidi-font-family: &amp;#39;Times New Roman&amp;#39;; mso-bidi-theme-font: minor-bidi"&gt;&amp;gt;        &lt;br /&gt;&lt;/span&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;; color: blue; font-size: 10pt; mso-no-proof: yes"&gt;&lt;span style="mso-spacerun: yes"&gt;&amp;#160; &lt;/span&gt;&amp;lt;&lt;/span&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;; color: #a31515; font-size: 10pt; mso-no-proof: yes"&gt;FilterDescriptor&lt;/span&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;; color: blue; font-size: 10pt; mso-no-proof: yes"&gt; &lt;/span&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;; color: red; font-size: 10pt; mso-no-proof: yes"&gt;Type&lt;/span&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;; color: blue; font-size: 10pt; mso-no-proof: yes"&gt;=&lt;/span&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; mso-no-proof: yes"&gt;&amp;quot;&lt;span style="color: blue"&gt;SsoTicket&lt;/span&gt;&amp;quot;&lt;span style="color: blue"&gt; &lt;/span&gt;&lt;span style="color: red"&gt;Name&lt;/span&gt;&lt;span style="color: blue"&gt;=&lt;/span&gt;&amp;quot;&lt;span style="color: blue"&gt;NameofSsoTicketFilter&lt;/span&gt;&amp;quot;&lt;span style="color: blue"&gt;&amp;gt;          &lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;; color: blue; font-size: 10pt; mso-no-proof: yes"&gt;&lt;span style="mso-spacerun: yes"&gt;&amp;#160; &lt;/span&gt;&amp;lt;!--&lt;/span&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;; color: green; font-size: 10pt; mso-no-proof: yes"&gt; properties omitted --&lt;/span&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;; color: blue; font-size: 10pt; mso-no-proof: yes"&gt;&amp;gt;        &lt;br /&gt;&lt;/span&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;; color: blue; font-size: 10pt; mso-no-proof: yes"&gt;&lt;span style="mso-spacerun: yes"&gt;&amp;#160; &lt;/span&gt;&amp;lt;/&lt;/span&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;; color: #a31515; font-size: 10pt; mso-no-proof: yes"&gt;FilterDescriptor&lt;/span&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;; color: blue; font-size: 10pt; mso-no-proof: yes"&gt;&amp;gt;        &lt;br /&gt;&lt;/span&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;; color: blue; font-size: 10pt; mso-bidi-font-size: 11.0pt; mso-bidi-font-family: &amp;#39;Times New Roman&amp;#39;; mso-bidi-theme-font: minor-bidi"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;; color: #a31515; font-size: 10pt; mso-bidi-font-size: 11.0pt; mso-bidi-font-family: &amp;#39;Times New Roman&amp;#39;; mso-bidi-theme-font: minor-bidi"&gt;FilterDescriptors&lt;/span&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;; color: blue; font-size: 10pt; mso-bidi-font-size: 11.0pt; mso-bidi-font-family: &amp;#39;Times New Roman&amp;#39;; mso-bidi-theme-font: minor-bidi"&gt;&amp;gt;&lt;/span&gt;&lt;a name="_GoBack"&gt;&lt;/a&gt;       &lt;br /&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 9pt"&gt;       &lt;p&gt;&lt;/p&gt;     &lt;/span&gt;&lt;/li&gt;    &lt;li&gt;Configure your desired input parameter’s type descriptor to point to this FilterDescriptor created in the previous step. An example to configure the above created FilterDescirptor is shown below:      &lt;p style="line-height: normal; margin-bottom: 0pt; mso-add-space: auto; mso-layout-grid-align: none" class="MsoListParagraphCxSpFirst"&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;; color: blue; font-size: 10pt; mso-no-proof: yes"&gt;&amp;lt;&lt;/span&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;; color: #a31515; font-size: 10pt; mso-no-proof: yes"&gt;Parameter&lt;/span&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;; color: blue; font-size: 10pt; mso-no-proof: yes"&gt; &lt;/span&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;; color: red; font-size: 10pt; mso-no-proof: yes"&gt;Direction&lt;/span&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;; color: blue; font-size: 10pt; mso-no-proof: yes"&gt;=&lt;/span&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; mso-no-proof: yes"&gt;&amp;quot;&lt;span style="color: blue"&gt;In&lt;/span&gt;&amp;quot;&lt;span style="color: blue"&gt; &lt;/span&gt;&lt;span style="color: red"&gt;...&lt;/span&gt;&lt;span style="color: blue"&gt;&amp;gt;            &lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;; color: blue; font-size: 10pt; mso-no-proof: yes"&gt;&lt;span style="mso-spacerun: yes"&gt;&amp;#160; &lt;/span&gt;&amp;lt;!--&lt;/span&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;; color: green; font-size: 10pt; mso-no-proof: yes"&gt; properties omitted –&lt;/span&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;; color: blue; font-size: 10pt; mso-no-proof: yes"&gt;&amp;gt;          &lt;br /&gt;&lt;/span&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;; color: blue; font-size: 10pt; mso-no-proof: yes"&gt;&lt;span style="mso-spacerun: yes"&gt;&amp;#160; &lt;/span&gt;&amp;lt;&lt;/span&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;; color: #a31515; font-size: 10pt; mso-no-proof: yes"&gt;TypeDescriptor&lt;/span&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;; color: blue; font-size: 10pt; mso-no-proof: yes"&gt; &lt;/span&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;; color: red; font-size: 10pt; mso-no-proof: yes"&gt;FilterName&lt;/span&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;; color: blue; font-size: 10pt; mso-no-proof: yes"&gt;=&lt;/span&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; mso-no-proof: yes"&gt;&amp;quot;&lt;span style="color: blue"&gt;NameofSsoTicketFilter&lt;/span&gt;&amp;quot;&lt;span style="color: blue"&gt; &lt;/span&gt;&lt;span style="color: red"&gt;...&lt;/span&gt;&lt;span style="color: blue"&gt;&amp;gt;            &lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;; color: blue; font-size: 10pt; mso-no-proof: yes"&gt;&lt;span style="mso-spacerun: yes"&gt;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&amp;lt;!--&lt;/span&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;; color: green; font-size: 10pt; mso-no-proof: yes"&gt; properties omitted –&lt;/span&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;; color: blue; font-size: 10pt; mso-no-proof: yes"&gt;&amp;gt;          &lt;br /&gt;&lt;/span&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;; color: blue; font-size: 10pt; mso-no-proof: yes"&gt;&lt;span style="mso-spacerun: yes"&gt;&amp;#160; &lt;/span&gt;&amp;lt;/&lt;/span&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;; color: #a31515; font-size: 10pt; mso-no-proof: yes"&gt;TypeDescriptor&lt;/span&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;; color: blue; font-size: 10pt; mso-no-proof: yes"&gt;&amp;gt;          &lt;br /&gt;&lt;/span&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;; color: blue; font-size: 10pt; mso-bidi-font-size: 12.0pt; mso-bidi-font-family: cambria"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;; color: #a31515; font-size: 10pt; mso-bidi-font-size: 12.0pt; mso-bidi-font-family: cambria"&gt;Parameter&lt;/span&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;; color: blue; font-size: 10pt; mso-bidi-font-size: 12.0pt; mso-bidi-font-family: cambria"&gt;&amp;gt;          &lt;br /&gt;&lt;/span&gt;&lt;b&gt;&lt;span style="font-family: &amp;quot;Calibri&amp;quot;,&amp;quot;sans-serif&amp;quot;; mso-bidi-theme-font: minor-latin; mso-ascii-theme-font: minor-latin; mso-hansi-theme-font: minor-latin"&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;      &lt;p&gt;&lt;/p&gt;      &lt;p&gt;&lt;/p&gt;      &lt;p&gt;&lt;/p&gt;      &lt;p&gt;&lt;/p&gt;   &lt;/li&gt; &lt;/ol&gt;  &lt;p&gt;&lt;b&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p&gt;&lt;b&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p&gt;- Tittu Jose, Software Development Engineer&lt;/p&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10004919" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/b/bcs/archive/tags/SharePoint+Designer/">SharePoint Designer</category><category domain="http://blogs.msdn.com/b/bcs/archive/tags/System+Filter/">System Filter</category><category domain="http://blogs.msdn.com/b/bcs/archive/tags/Filter/">Filter</category></item><item><title>Accessing BLOB Data from External Systems Using Business Connectivity Services in SharePoint Server 2010</title><link>http://blogs.msdn.com/b/bcs/archive/2010/04/27/accessing-blob-data-from-external-systems-using-business-connectivity-services-in-sharepoint-server-2010.aspx</link><pubDate>Wed, 28 Apr 2010 00:20:06 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10003545</guid><dc:creator>lionelro</dc:creator><slash:comments>4</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blogs.msdn.com/b/bcs/rsscomments.aspx?WeblogPostID=10003545</wfw:commentRss><comments>http://blogs.msdn.com/b/bcs/archive/2010/04/27/accessing-blob-data-from-external-systems-using-business-connectivity-services-in-sharepoint-server-2010.aspx#comments</comments><description>&lt;p&gt;&lt;a href="http://blogs.msdn.com/taj/"&gt;Tajeshwar Singh&lt;/a&gt; wrote a white paper which shows you how to use Microsoft Business Connectivity Services (BCS) in Microsoft SharePoint Server 2010 to access and surface BLOB data in the SharePoint user interface and search. Check out the overview below taken from the paper. &lt;/p&gt;  &lt;p&gt;Link to document: &lt;a href="http://msdn.microsoft.com/en-us/library/ff634782(office.14).aspx"&gt;Accessing BLOB Data from External Systems Using Business Connectivity Services in SharePoint Server 2010&lt;/a&gt;&lt;/p&gt;  &lt;h4&gt;Overview of the white paper&lt;a name="_GoBack"&gt;&lt;/a&gt;&lt;/h4&gt;  &lt;p&gt;Microsoft Business Connectivity Services (BCS) is the new version of Microsoft Office SharePoint Server 2007 Business Data Catalog functionality. New features are added that help retrieve binary large object data (referred to as BLOB data) from external systems and make it available in Microsoft SharePoint Server 2010. This article describes the following:&lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;The functionality that is provided by the &lt;strong&gt;StreamAccessor&lt;/strong&gt; stereotype that is introduced in Business Connectivity Services. &lt;/li&gt;    &lt;li&gt;How to use &lt;strong&gt;StreamAccessor&lt;/strong&gt; to retrieve file attachments from external systems for viewing and indexing.&lt;/li&gt;    &lt;li&gt;How to write the BDC model that is required to consume BLOB data. &lt;/li&gt;    &lt;li&gt;The built-in Web Parts behavior for BLOB data, and how BLOB fields can be indexed by SharePoint Server search.&lt;/li&gt; &lt;/ul&gt;  &lt;p&gt;In this article's scenario, the AdventureWorks database that is hosted in Microsoft SQL Server 2008 is used as an external system that contains the binary data. The BDC metadata model is created with a &lt;strong&gt;StreamAccessorMethodInstance&lt;/strong&gt; to retrieve the BLOB field of type &lt;strong&gt;varbinary&lt;/strong&gt; from SQL Server as an external content type. The BLOB fields are modeled as types that can be read in chunks to help Business Connectivity Services read the stream in chunks, and not load the complete content in memory. This can help prevent out-of-memory conditions. An example of such a type is &lt;strong&gt;System.IO.Stream&lt;/strong&gt; in the Microsoft .NET Framework. An External Data Grid Web Part is configured to show the external items with links to download the BLOB. Finally, Search is configured to crawl the BLOBs and show the results in the SharePoint Server search user interface (UI).&lt;/p&gt;  &lt;p&gt;&lt;b&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p&gt;- Lionel Robinson, Program Manager&lt;/p&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10003545" width="1" height="1"&gt;</description></item></channel></rss>