2012-11-28 54 views
0

我需要將Outlook連接到外部列表,並且必須將其內容類型映射到該Office項目類型,但不幸的是我無法在SPD2013中看到它。可能是因爲BDC模型使用OData,它在SPD2013(my question about it)中的支持有限。是否可以將外部內容類型映射到Office項目類型而不使用SharePoint Designer?

那麼,是否可以將外部內容類型映射到Office項目類型而不使用SharePoint Designer?如果是這樣,我該怎麼做?

預先感謝您。

PS:SharePoint 2013 RTM。

回答

0

萬歲! 經過三天的搜索不成功,並向處處詢問這個問題:-)我試圖自己調查它,最後,我找到了一種方法來做到這一點!

看來,它是很容易手工繪製它。對於你必須讓(XML與.bdcm擴展)2點的變化在BDC模型文件:

與Office項類型的名稱添加屬性的實體必要

<Entities> 
    <Entity Name="AbsenceCalendar" DefaultDisplayName="AbsenceCalendar" Namespace="MyNameSpace" Version="1.0.0.0" EstimatedInstanceCount="2000"> 
<Properties> 
    <Property Name="OutlookItemType" Type="System.String">Appointment</Property> 
    ... 
</Properties> 
... 

地圖字段添加到Office項目類型。例如,對於約會辦公室物品類型的必填字段,它可能看起來像

<Method Name="ReadSpecificAbsenceCalendarEntity" DefaultDisplayName="Read Specific AbsenceCalendarEntity" IsStatic="false">  
......  
    <Parameter Name="@AbsenceCalendarEntity" Direction="Return"> 
    <TypeDescriptor Name="AbsenceCalendarEntity" DefaultDisplayName="AbsenceCalendarEntity" TypeName="Microsoft.BusinessData.Runtime.DynamicType"> 
     <TypeDescriptors> 
      <TypeDescriptor Name="Title" DefaultDisplayName="Title" TypeName="System.String"> 
       <Properties> 
       <Property Name="OfficeProperty" Type="System.String">Subject</Property> 
       </Properties> 
      </TypeDescriptor> 
      <TypeDescriptor Name="StartDate" DefaultDisplayName="StartDate" TypeName="System.DateTime"> 
       <Properties> 
       <Property Name="OfficeProperty" Type="System.String">Start</Property> 
       </Properties> 
      </TypeDescriptor> 
      <TypeDescriptor Name="EndDate" DefaultDisplayName="EndDate" TypeName="System.DateTime"> 
       <Properties> 
         <Property Name="OfficeProperty" Type="System.String">End</Property> 
       </Properties> 
      </TypeDescriptor> 
....... 
相關問題