技术文章 - CS294238
在使用 Windchill PDMLink 中的 WRS(Windchill REST Services, OData)API(应用程序编程接口)时,如果记录总数超过 2000,则并非所有记录都会返回。
已修改: 30-Apr-2026
适用于
- Windchill PDMLink 11.0 to 13.0
- ThingWorx Platform 9.6
- Windchill REST Services (WRS) 1.5 - 2.6
说明
- $top 参数未被考虑。
- 即使 $top 设置为不同的值,也始终显示 25 个元素。
- 如何向所有 ODataConnector 路由服务添加自定义标头“Prefer”
- 使用Windchill/servlet/odata/ProdMgmt/Parts('VR:wt.part.WTPart:xxxxx')/Uses获取零件物料清单时,仅返回 25 个元素
- 使用Windchill/servlet/odata/ProdMgmt/Parts('OR:wt.part.WTPart:xxxxx')/DescribedBy获取 Described by 链接时,仅返回 25 个元素
- 使用 WRS API( Windchill/servlet/odata/v4/PrincipalMgmt/Users )时,通过请求头中的 prefer 键一次只能获取 2000 个用户。
- 当用户总数超过2000时,如何一次性检索超过2000个用户或所有用户?
- 如何增加最大返回元素数量
- 使用 REST API 按名称获取文档时,并非所有记录都会返回。
- 无法使用 OData REST API 获取所有记录/部分
- WRS v4/SavedSearch/SavedQueries无法获取所有已保存的搜索
这是文章 294238 的 PDF 版本,可能已过期。最新版本 CS294238