SharePoint GetListItems 返回键不一致
当我调用 SharePoint GetListItems
Web 方法时,它返回一些以 GUID 作为键的项目,其余的以文本 ID 作为键。
例如,如果我有一个包含三列的表单库,例如 UserName
、EnvironmentName
和 LastStatus
,则它们可能会按如下方式返回:
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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这些列的 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)