简体   繁体   English

Dynamics CRM 实体归个人或公司所有

[英]Dynamics CRM Entity to be owned by person or company

I have the below requirement -我有以下要求 -

We have an entity named Garden.我们有一个名为 Garden 的实体。 A garden is owned by a person or company, and can also be leased by one or more people or companies.花园归个人或公司所有,也可以由一个或多个人或公司出租。 Each garden has a unique number.每个花园都有一个唯一的编号。

Ideally, we would want to be able to see a single grid of all the people that own and/or lease the garden, regardless of whether they are a person or a company.理想情况下,我们希望能够看到所有拥有和/或租赁花园的人的单一网格,无论他们是个人还是公司。

Questions -问题 -

1) Which entity to choose for person -> User or Contact 1) 为个人选择哪个实体 -> 用户或联系人

2) Which entity to choose for company? 2)为公司选择哪个实体?

3) How to design record ownership or leasing of garden? 3)如何设计花园的所有权或租赁记录?

This is a broad question, I'll try my best.这是一个广泛的问题,我会尽力而为。

Fact : We don't have an option today to create a custom polymorphic entity - to capture/store multiple types of entities.事实:我们今天没有选择来创建自定义多态实体 - 来捕获/存储多种类型的实体。 There are some available OOB entities - Customer to store Account/Contact, Owner to store User/Team, Activity Regarding to store any Activity enabled entities.有一些可用的OOB实体-客户到客户/联系人,用户存储来存储用户/组,活动对于存储任何活动启用的实体。

If you look at Bookable Resource entity, even MS store the type like User or Equipment & respective lookup records separately.如果您查看可预订资源实体,甚至 MS 也会分别存储用户或设备等类型和各自的查找记录。 This is what you need exactly.这正是您所需要的。 Read more 阅读更多

1) Which entity to choose for person -> User or Contact 1) 为个人选择哪个实体 -> 用户或联系人

2) Which entity to choose for company? 2)为公司选择哪个实体?

User (owner) in case you need security around the ownership of the records.用户(所有者),以防您需要记录所有权的安全性。 Then company has to be the Teams, because you mentioned Garden maybe owned by Person or Company.那么公司必须是团队,因为你提到花园可能归个人或公司所有。 How many records you're going to manage and are they going to get login in CRM?您要管理多少条记录,它们是否会在 CRM 中登录?

You may have to look at PowerApps (Dynamics) portals which gives B2B, B2C options to control records ownership by Accounts/Contacts.您可能需要查看 PowerApps (Dynamics) 门户,它提供 B2B、B2C 选项来控制帐户/联系人的记录所有权。

3) How to design record ownership or leasing of garden? 3)如何设计花园的所有权或租赁记录?

Partially answered in the above points.部分回答了以上几点。 For leasing, you can have multiple subgrid (1:N) relationship.对于租赁,您可以有多个子网格 (1:N) 关系。 If required, you may need a custom component or web resource to pull the multiple type of owned/leasing records by UNION the results & render as a grid.如果需要,您可能需要自定义组件或 Web 资源来通过 UNION 提取多种类型的拥有/租赁记录并将结果呈现为网格。

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

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