小编uba*_*012的帖子

计算 Dynamics CRM Online Web API (ODATA) 中的所有行

是否可以计算给定实体中的所有行,绕过 5000 行限制并绕过页面大小限制?

我不想在一个请求中返回超过 5000 行,但只想要该给定实体中所有行的计数。

根据 Microsoft 的说法,您不能在请求 URI 中执行此操作:

The count value does not represent the total number of entities in the system. 

It is limited by the maximum number of entities that can be returned.
Run Code Online (Sandbox Code Playgroud)

我已经尝试过这个:

GET [Organization URI]/api/data/v9.0/accounts/?$count=true
Run Code Online (Sandbox Code Playgroud)

还有其他办法吗?

dynamics-crm odata dynamics-crm-online dynamics-crm-webapi dynamics-crm-365

5
推荐指数
2
解决办法
1万
查看次数