简体   繁体   English

如果用户添加不同的托管解决方案,如何管理CRM表单字段和功能区按钮?

[英]How to manage CRM Form field and Ribbon button if user add different Managed Solution?

I am beginner of CRM. 我是CRM的初学者。 I have few basic confusion. 我几乎没有什么基本的困惑。 I want to clear it before I go for something big. 在我去寻找一些大事之前我想要清除它。 I have 2 cases where I am getting confuse. 我有两个案例让我感到困惑。

Case 1: I have a Managed Solution with 2 version. 案例1:我有一个2版本的托管解决方案。 MyAccount 1.0.0.0 and MyAccount 1.0.1.0. MyAccount 1.0.0.0和MyAccount 1.0.1.0。 In version 1.0.0.0 I have field in CRM Account form. 在版本1.0.0.0中,我在CRM帐户表单中有字段。 In version 1.0.1.0, I have added a field Address FAX and removed a field Website. 在版本1.0.1.0中,我添加了一个字段地址传真并删除了一个字段网站。 So, when user add version 1.0.1.0, it will overwrite the design. 因此,当用户添加版本1.0.1.0时,它将覆盖设计。 Can I change this behavior if I want to keep older design? 如果我想保留较旧的设计,我可以改变这种行为吗?

Case 2: I have 2 different Managed Solutions. 案例2:我有2种不同的托管解决方案。 MyAccount 1.0.0.0 and ManageBankAccount 1.0.0.0. MyAccount 1.0.0.0和ManageBankAccount 1.0.0.0。 In first Managed Solution I have field in CRM Account form. 在第一个托管解决方案中,我在CRM帐户表单中有字段。 In second Managed Solution, I have added a field Address FAX and removed a field Website. 在第二个托管解决方案中,我添加了一个字段地址传真并删除了一个字段网站。 So, what will be the result if A- User add first Managed Solution and then second Managed Solution? 那么,如果A-用户添加第一个托管解决方案然后再添加第二个托管解决方案,结果会是什么? B- User add second Managed Solution and then first Managed Solution? B-用户添加第二个托管解决方案,然后是第一个托管解决方案?

Can anybody suggest me for Case 1, Case 2-A, Case 2-B? 有人建议我使用案例1,案例2-A,案例2-B吗?

(Here, Plugin means Managed Solution.) (这里,插件意味着托管解决方案。)

在此输入图像描述

Note: These are my understandings based on below content from MSDN : 注意:这些是基于以下来自MSDN的内容的理解:

Merging Form Customizations 合并表单自定义

When a solution is packaged as a managed solution the form definitions stored in FormXML are compared to the original FormXML and only the differences are included in the managed solution. 将解决方案打包为托管解决方案时,将存储在FormXML中的表单定义与原始FormXML进行比较,并且只有差异包含在托管解决方案中。 When the managed solution is installed in a new organization, the form customization differences are then merged with the FormXML for the existing form to create a new form definition. 当托管解决方案安装在新组织中时,表单自定义差异将与现有表单的FormXML合并,以创建新的表单定义。 This new form definition is what the user sees and what a system customizer can modify. 此新表单定义是用户看到的内容以及系统定制程序可以修改的内容。 When the managed solution is uninstalled, only those form elements found in the managed solution are removed. 卸载托管解决方案时,仅删除托管解决方案中找到的那些表单元素。

When you add new elements to a form that is to be merged, we recommend that you include your new elements within new container elements (tabs or sections). 将新元素添加到要合并的表单时,建议您在新容器元素(选项卡或节)中包含新元素。 Additions to any container will be appended to the end of the container. 任何容器的添加都将附加到容器的末尾。 For example, fields added to a section will be positioned at the end of the section. 例如,添加到节中的字段将位于节的末尾。 It is expected that a customizer installing a solution will then modify the form to re-arrange elements after it is installed. 预计安装解决方案的定制程序将修改表单,以便在安装后重新排列元素。

Also read Conflict resolution . 另请阅读冲突解决方案

Top Wins 热门胜利

For all other solution components any conflict is calculated in favor of the customization that is applied last. 对于所有其他解决方案组件,计算任何冲突以支持最后应用的自定义。 For managed solutions this usually means that the last solution installed is applied. 对于托管解决方案,这通常意味着应用了最后安装的解决方案。

Now coming to your questions: 现在回答你的问题:

Case 1: I have a Managed Solution with 2 version. 案例1:我有一个2版本的托管解决方案。 MyAccount 1.0.0.0 and MyAccount 1.0.1.0. MyAccount 1.0.0.0和MyAccount 1.0.1.0。 In version 1.0.0.0 I have field in CRM Account form. 在版本1.0.0.0中,我在CRM帐户表单中有字段。 In version 1.0.1.0, I have added a field Address FAX and removed a field Website. 在版本1.0.1.0中,我添加了一个字段地址传真并删除了一个字段网站。 So, when user add version 1.0.1.0, it will overwrite the design. 因此,当用户添加版本1.0.1.0时,它将覆盖设计。 Can I change this behavior if I want to keep older design? 如果我想保留较旧的设计,我可以改变这种行为吗?

No, you cannot change this overwrite behavior as such. 不,您无法更改此覆盖行为。 This is default CRM product behavior of Managed solution component import. 这是托管解决方案组件导入的默认CRM产品行为。

Assuming you already imported 1.0.0.0 (form with "Website" field / without "Fax" field), then don't import 1.0.1.0 (form with "Fax" field / without "Website" field), or delete the managed solution 1.0.1.0 , this will revert the form layout to 1.0.0.0 solution. 假设您已导入1.0.0.0 (带有“网站”字段/没有“传真”字段的表单),则不导入1.0.1.0 (带有“传真”字段/没有“网站”字段的表单),或删除托管解决方案1.0.1.0 ,这将表单布局还原为1.0.0.0解决方案。

Deleting managed solution will rollback to previous version of any component(form). 删除托管解决方案将回滚到任何组件(表单)的先前版本。 This way you can keep the older design. 这样您就可以保留旧设计。

Case 2: I have 2 different Managed Solutions. 案例2:我有2种不同的托管解决方案。 MyAccount 1.0.0.0 and ManageBankAccount 1.0.0.0. MyAccount 1.0.0.0和ManageBankAccount 1.0.0.0。 In first Managed Solution I have field in CRM Account form. 在第一个托管解决方案中,我在CRM帐户表单中有字段。 In second Managed Solution, I have added a field Address FAX and removed a field Website. 在第二个托管解决方案中,我添加了一个字段地址传真并删除了一个字段网站。 So, what will be the result if A- User add first Managed Solution and then second Managed Solution? 那么,如果A-用户添加第一个托管解决方案然后再添加第二个托管解决方案,结果会是什么? B- User add second Managed Solution and then first Managed Solution? B-用户添加第二个托管解决方案,然后是第一个托管解决方案?

Case 2-A: 案例2-A:
MyAccount (form with "Website" field / without "Fax" field) is installed first & then ManageBankAccount (form with "Fax" field / without "Website" field) is installed. 首先安装MyAccount(带有“Website”字段/没有“Fax”字段的表单),然后安装ManageBankAccount(带有“Fax”字段/没有“Website”字段的表单)。

End result would be form rendering based on ManageBankAccount (form with "Fax" field / without "Website" field) 最终结果将是基于ManageBankAccount的表单呈现(具有“传真”字段/没有“网站”字段的表单)

Case 2-B: 案例2-B:
ManageBankAccount (form with "Fax" field / without "Website" field) is installed first & then MyAccount (form with "Website" field / without "Fax" field) is installed. 首先安装ManageBankAccount(带有“传真”字段/没有“网站”字段的表单),然后安装MyAccount(带有“网站”字段/没有“传真”字段的表单)。

End result would be form rendering based on MyAccount (form with "Website" field / without "Fax" field) 最终结果将是基于MyAccount的表单呈现(带有“Website”字段/没有“Fax”字段的表单)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM