SharePoint GetListItems 返回键不一致

发布于 2024-09-11 00:17:57 字数 486 浏览 0 评论 0原文

当我调用 SharePoint GetListItems Web 方法时,它返回一些以 GUID 作为键的项目,其余的以文本 ID 作为键。

例如,如果我有一个包含三列的表单库,例如 UserNameEnvironmentNameLastStatus,则它们可能会按如下方式返回:

ows_b5acede2_x002d_ab94_x002d_470f_x002d_b9e9_x002d_cdf4d3fe4e01=\"约翰·多伊\" ows_EnvironmentName=\"Windows\" ows__x0032_ef676c4_x002d_8f1c_x002d_4287_x002d_97c2_x002d_0d05ef782b83=\"已提交\"

为什么在某些情况下它会返回列键作为 GUID 以及如何强制它返回文本 ID?谢谢。

When I call the SharePoint GetListItems web method, it returns some of the items with a GUID as the key, and the rest with a text ID as the key.

For example, if I have a form library with three columns, say UserName, EnvironmentName, and LastStatus, they might be returned as follows:

ows_b5acede2_x002d_ab94_x002d_470f_x002d_b9e9_x002d_cdf4d3fe4e01=\"John Doe\" ows_EnvironmentName=\"Windows\"
ows__x0032_ef676c4_x002d_8f1c_x002d_4287_x002d_97c2_x002d_0d05ef782b83=\"Submitted\"

Why is it returning the column key as a GUID in some cases and how can I force it to return the text ID? Thanks.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

难以启齿的温柔 2024-09-18 00:17:57

这些列的 InternalName 可能设置为 Guid。

您可以在服务器上使用 SharePoint Manager 查看所有内容的设置方式(有 2007 和 2010 版本) )

It could be that the InternalName of these columns is set to the Guid.

You can use SharePoint Manager on the server to look at how everything is set up (there is both 2007 and 2010 versions)

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文