如何查看CRM 2011中的联系人总数? [英] How to check the total number of contacts in CRM 2011?

查看:69
本文介绍了如何查看CRM 2011中的联系人总数?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

现在使用的方法是检查从DB读取的数组的大小。只要对其执行其他操作,这种背负就可以了。但是,我想知道是否有一种更直接的方法来查询现有联系人的数量。

The method used right now is to check the size of the array read from DB. As long as there are other operations performed on it, such a piggy-back is fine. However, I'd like to know if there's a more direct method to query for the number of contact existing.

我正在C#中进行编码,但是JS可以获取

I'm coding in C# but JS would be to get to know too, just in case.

QueryExpression query = new QueryExpression
{
  EntityName = "contact",
  ColumnSet = new ColumnSet(true),
};
EntityCollection response = organizationService.RetrieveMultiple(query);
IEnumerable<Entity> entities = response.Entities;


推荐答案

您可以使用 TotalRecordCount 响应上。

Console.WriteLine("Total number of records: " + response.TotalRecordCount);

这篇关于如何查看CRM 2011中的联系人总数?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆