简体   繁体   English

在动态CRM中查找实体列表

[英]lookup entity list in dynamics CRM

I created a new entity in my CRM 2016 and it has two attributes: Entity Name and Entity Attribute. 我在CRM 2016中创建了一个新实体,它有两个属性:实体名称和实体属性。 Users will use drop down and select Entity name (contract, contact, lead, etc), then they will select Attribute (leadid, custom_phone, etc) 用户将使用下拉菜单并选择实体名称(合同,联系人,潜在客户等),然后他们将选择属性(leadid,custom_phone等)

My question is: how can I build lookup field to show entity name and entity attribute for lookup. 我的问题是:如何构建查找字段以显示查找的实体名称和实体属性。

I have also investigate to current Entity Duplication rule, and I see lookup entity name is called record type, and use F12 developer tool to see this is list of option set. 我还调查了当前的实体复制规则,我看到查找实体名称被称为记录类型,并使用F12开发人员工具查看这是选项集列表。

The others research is: write plugin to get entity name array and put var[] to CRM control in form via javascript onload event, but it throw error when assign var[] to CRM control. 其他研究是:编写插件以获取实体名称数组并通过javascript onload事件将var []以形式放入CRM控件,但在将var []分配给CRM控件时会抛出错误。

Could you give me a key word to do this requirement? 你能给我一个关键词来做这个要求吗?

You want to query all the Entities & its related attributes to list down, so users can pick & configure. 您希望查询所有实体及其相关属性以便列出,以便用户可以选择和配置。

You have to research Entity metadata browser & mimic it with some console app to populate data in your custom Entity. 您必须研究实体元数据浏览器并使用某些控制台应用程序模拟它以填充自定义实体中的数据。

But you cannot populate this data into your CRM form control on the fly as the Form components belongs to Customizations & the Lookup/Picklist has to be customized & data stored in database to use readily. 但是您无法动态地将此数据填充到您的CRM表单控件中,因为表单组件属于自定义项,并且必须自定义查找/选取列表并将数据存储在数据库中以便于使用。

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

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