值不在带“的预期范围内”;Microsoft.SharePoint.Client.ServerException“;,
我在sharepoint中使用联接查询。但当我从查找列表中获取值时,似乎在上得到了一个错误 这是我的设计值不在带“的预期范围内”;Microsoft.SharePoint.Client.ServerException“;,,sharepoint,sharepoint-2013,Sharepoint,Sharepoint 2013,我在sharepoint中使用联接查询。但当我从查找列表中获取值时,似乎在上得到了一个错误 这是我的设计 作为文档库类型的文档具有Id Id | DocLeafRef ---+------------- 1 | Document A 2 | Document B 活动列表中,具有引用文档Id的外键“e8_document” Id | e8_document | Name ---+-------------+----------- 1 | 1 | Activity
- 作为文档库类型的文档具有Id
Id | DocLeafRef ---+------------- 1 | Document A 2 | Document B
- 活动列表中,具有引用文档Id的外键“e8_document”
Id | e8_document | Name ---+-------------+----------- 1 | 1 | Activity A 2 | 1 | Activity B 3 | 1 | Activity C 4 | 2 | Activity D
Id | e8_document | Name | DocLeafRef
---+-------------+--------------------------
1 | 1 | Activity A | Document A
2 | 1 | Activity B | Document A
3 | 1 | Activity C | Document A
4 | 2 | Activity D | Document B
谁能帮我一下我的问题出在哪里。这是我的问题
<View>
<ViewFields>
<FieldRef Name = 'DocLeafRef'/>
<FieldRef Name = 'ID'/>
<FieldRef Name = 'e8_document'/>
<FieldRef Name = 'Title'/>
<FieldRef Name = 'Author'/>
<FieldRef Name = 'Created'/>
</ViewFields>
<Joins>
<Join Type = 'INNER' ListAlias = 'Documents'>
<Eq>
<FieldRef Name ='e8_document' RefType = 'Id'/>
<FieldRef Name ='ID' List ='Documents'/>
</Eq>
</Join>
</Joins>
<ProjectedFields>
<Field ShowField ='FileLeafRef' Type ='Lookup' Name ='DocLeafRef' List ='Documents'/>
</ProjectedFields>
<Query>
<Where>
<Eq>
<FieldRef Name='e8_caseId'></FieldRef>
<Value Type = 'Number'>23</Value>
</Eq>
</Where>
</Query>
</View>
23
这是个例外
问题可能在于
FileLeafRef
不是可在投影字段中使用的字段类型之一
请参阅文档
ProjectedFields元素中只能包含以下类型的字段:
•计算(视为纯文本)
•ContentTypeId
•计数器
•货币
•日期时间
•Guid
•整数
•注(仅一行)
•数量
•文本
获取ProjectedFields不支持的其他字段类型(如UniqueId(查找类型)和FileLeafRef(文件类型))的任何方法?您可以使用工作流将所需字段值自动复制到文本字段,然后在投影中公开该文本字段。您有任何示例吗?