我可以使用<sharepoint site URL>/_vti_bin/ListData.svc/
查看项目网站中的所有列表,但是如何查看所有列表及其列?有没有办法实现这个目标?
答案 0 :(得分:0)
您无法在一个查询中执行此操作。您需要逐个查看才能获得列表定义。例如,如果您有一个名为Calendar的列表,则可以转到<sharepoint site URL>/_vti_bin/listdata.svc/Calendar
来获取项目和字段。它将输出列表项,每个条目都有一个名为content的标签,其中是另一个名为m:properties的标签。这包括内容类型及其值的所有字段。
<content type="application/xml">
<m:properties>
<d:ContentTypeID>0x010200FD20E8386D889748BDD9444F29251083</d:ContentTypeID>
<d:Title>Meeting with Bob</d:Title>
<d:Location>WebEx</d:Location>
<d:StartTime m:type="Edm.DateTime">2014-11-26T10:00:00</d:StartTime>
<d:EndTime m:type="Edm.DateTime">2014-11-26T10:30:00</d:EndTime>
<d:Description><div>Meeting with Bob</div></d:Description>
<d:AllDayEvent m:type="Edm.Boolean">false</d:AllDayEvent>
<d:Recurrence m:type="Edm.Boolean">false</d:Recurrence>
<d:Workspace m:type="Edm.Boolean">false</d:Workspace>
<d:CategoryValue>Meeting</d:CategoryValue>
<d:TeamMemberNameId m:type="Edm.Int32">138</d:TeamMemberNameId>
<d:Id m:type="Edm.Int32">1</d:Id>
<d:ContentType>Event</d:ContentType>
<d:Modified m:type="Edm.DateTime">2014-11-26T09:35:12</d:Modified>
<d:Created m:type="Edm.DateTime">2014-11-26T09:35:12</d:Created>
<d:CreatedById m:type="Edm.Int32">2990</d:CreatedById>
<d:ModifiedById m:type="Edm.Int32">2990</d:ModifiedById>
<d:Owshiddenversion m:type="Edm.Int32">1</d:Owshiddenversion>
<d:Version>1.0</d:Version>
<d:Path>/Lists/Calendar</d:Path>
</m:properties>
</content>