为渠道实例定义扩展配置实体

自定义实例是在 Dynamics 365 Sales 中代表提供商的形式。 创建通道时,需要配置发件人,例如短信的发件人。 通道的每个实例(即实体 通道实例)表示单个发送方。

对于每个通道解决方案,请完成以下步骤:

  1. 创建自定义表 ,表示基解决方案中定义的 通道实例 表(msdyn_channelinstance)的扩展配置。

    在渠道定义步骤中,将表名分配给属性 msdyn_channeldefinitionexternalentity。

  2. 在 msdyn_extendedentityid 属性中,创建并编辑一对多或多对一表关系至基础渠道实例表。

    此属性是 多态查找。 下面是 XML 中关系的一个示例:

    <EntityRelationship Name="msdyn_ChannelInstance_extendedentityid_cr65f_samplechannelinstance">
        <EntityRelationshipType>OneToMany</EntityRelationshipType>
        <IsCustomizable>0</IsCustomizable>
        <IntroducedVersion>1.0.0.0</IntroducedVersion>
        <IsHierarchical>0</IsHierarchical>
        <ReferencingEntityName>msdyn_ChannelInstance</ReferencingEntityName>
        <ReferencedEntityName>cr65f_samplechannelinstance</ReferencedEntityName>
        <CascadeAssign>NoCascade</CascadeAssign>
        <CascadeDelete>RemoveLink</CascadeDelete>
        <CascadeReparent>NoCascade</CascadeReparent>
        <CascadeShare>NoCascade</CascadeShare>
        <CascadeUnshare>NoCascade</CascadeUnshare>
        <CascadeRollupView>NoCascade</CascadeRollupView>
        <IsValidForAdvancedFind>1</IsValidForAdvancedFind>
        <ReferencingAttributeName>msdyn_extendedentityId</ReferencingAttributeName>
        <RelationshipDescription>
          <Descriptions>
            <Description description="" languagecode="1033" />
          </Descriptions>
        </RelationshipDescription>
        <EntityRelationshipRoles>
          <EntityRelationshipRole>
            <NavPaneDisplayOption>UseCollectionName</NavPaneDisplayOption>
            <NavPaneArea>Details</NavPaneArea>
            <NavPaneOrder>10000</NavPaneOrder>
            <NavigationPropertyName>msdyn_extendedentityid_cr65f_samplechannelinstance</NavigationPropertyName>
            <RelationshipRoleType>1</RelationshipRoleType>
          </EntityRelationshipRole>
          <EntityRelationshipRole>
            <NavigationPropertyName>msdyn_ChannelInstance_extendedentityid_cr65f_samplechannelinstance</NavigationPropertyName>
            <RelationshipRoleType>0</RelationshipRoleType>
          </EntityRelationshipRole>
        </EntityRelationshipRoles>
      </EntityRelationship>
    
  3. 创建窗体以公开配置字段。

    销售设置向导将加载表单。 将表单 ID 分配给属性msdyn_channeldefinitionexternalformid,在通道定义步骤中。

    短信通道的表单截图。

后续步骤

为通道实例帐户定义扩展配置实体