Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/431.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript SharePoint REST API—是否可以将列表A中的查找列扩展到列表B,并立即获取带有附件B的数据?_Javascript_Rest_Sharepoint_Lookup - Fatal编程技术网

Javascript SharePoint REST API—是否可以将列表A中的查找列扩展到列表B,并立即获取带有附件B的数据?

Javascript SharePoint REST API—是否可以将列表A中的查找列扩展到列表B,并立即获取带有附件B的数据?,javascript,rest,sharepoint,lookup,Javascript,Rest,Sharepoint,Lookup,我有一个列表a。在这个列表中,我有一个查找列authorId。在作者列表中,我有一些数据列和一个附件。我需要得到这两方面的信息-我也需要数据和附件 可以在一个查询中实现吗?我相信您需要在REST调用中对两列进行选择和展开,类似于 借用他们的答案: /_api/web/lists(guid'<guid>')/items?$select=AttachmentFiles,authorId/FieldToExpand&$expand=AttachmentFiles,authorId

我有一个列表a。在这个列表中,我有一个查找列authorId。在作者列表中,我有一些数据列和一个附件。我需要得到这两方面的信息-我也需要数据和附件


可以在一个查询中实现吗?

我相信您需要在REST调用中对两列进行选择和展开,类似于

借用他们的答案:

/_api/web/lists(guid'<guid>')/items?$select=AttachmentFiles,authorId/FieldToExpand&$expand=AttachmentFiles,authorId
/\u api/web/lists(guid“”)/items?$select=AttachmentFiles,authorId/FieldToExpand&$expand=AttachmentFiles,authorId