如何使用 IOrganizationservice ,.retrieve 方法检索帐户实体的系统属性
我有一个要求,需要检索实体的系统属性。
ColumnSet cset = new ColumnSet(true);
cset.AllColumns = true;
Entity capconnect=(Entity)_servicecapconnect.Retrieve("account",cc.Key,cset);
当我检索实体时,capconnect 仅具有帐户的自定义属性。但我有兴趣获取诸如“telephone1”“address1_line1”之类的属性,这些属性是帐户实体的系统属性。
我在数据库中查看了帐户实体有 60 列,但检索到的属性只有 46 个,这些都是自定义属性。
我很欣赏你的意见。 -阿基拉
I have a requirement where I need to retrieve the system attributes of an entity.
ColumnSet cset = new ColumnSet(true);
cset.AllColumns = true;
Entity capconnect=(Entity)_servicecapconnect.Retrieve("account",cc.Key,cset);
When I do retrieve the entity capconnect has only the custom attributes of account.But I am interested in getting attributes like "telephone1" "address1_line1" which are system attributes of account entity.
I looked in the database the account entity has 60 columns but the attributes retrieved are only 46 which are all the custom attributes.
I appreciate your inputs.
-Akila
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我假设实体中不存在的属性没有值。这是正常的,因为由于性能原因,响应将仅包含包含值的字段。
因此,响应不会因为空值而变得臃肿。
I assume that the properties, which are not present in the entity, don't have a value. This is normal as the response will only include the fields which contain values due to performance reasons.
Therefore the response won't be bloated with null values.