用户创建外部URL以搜索元数据/标签参考 [英] User Created External URL to search on Meta Data / Tag Ref
问题描述
大家好,请有人告诉我,我是否可以创建一个指向我的O365 sharepoint网站的超链接,该网站会返回标记为 的所有文件。特定标签或元数据? (所以最终用户可以一次压缩和下载所有相关文件)如果是这样的话,
该URL必须包含哪种格式?
Hi all, please can someone tell me if I can create a hyperlink that directs to my O365 sharepoint site that returns all the files tagged with a specific tag or metadata? (so the end user can zip and download all the relevant files in one go) if so, what format must that URL be in?
提前致谢,初学者Sharepoint用户。
Thanks in advance, a beginner Sharepoint User.
推荐答案
您好Richard Burdett,
Hi Richard Burdett,
可以创建一个超链接来搜索具有特定元数据的文件,并通过CSOM下载文件。
It is possible to create a hyperlink to search the files with specific metadata and download the files by CSOM.
我们可以使用搜索REST API。您可以使用下面的超链接查找具有特定术语的文档。
We can use the search REST API. And you can use the hyperlink below to find document with specific term.
https://yourtenant.sharepoint.com/_api/search/query?querytext='search_data'&querytemplate= '{searchterms} IsDocument:true'
https://yourtenant.sharepoint.com/_api/search/query?querytext='search_data'&querytemplate='{searchterms} IsDocument:true'
要搜索文件,您还可以使用下面的超链接。
And to search files, you also can use the hyperlink below.
https:/ / server / _api / search / query?querytext ='search_data'& refinementfilters ='fileExtension:equals(" docx")'
https://server/_api/search/query?querytext='search_data'&refinementfilters='fileExtension:equals("docx")'
然后你可以通过CSOM下载文件。
Then you could download the files by CSOM.
更多参考资料:
SharePoint Search REST API概述。
SharePoint Search REST API overview.
从SharePoint Online下载文件。
Download file from SharePoint Online.
https://code.msdn.microsoft.com/office/file -from-SharePoint-Online-cc418dba
通过Azure AD将SharePoint CSOM和REST API与Office 365 API一起使用
Using the SharePoint CSOM and REST API with Office 365 API via Azure AD
适用于开发人员的Office 365和SharePoint Online API指南。
Office 365 and SharePoint Online API Guidance for Developers.
祝你好运,
Sara Fan
这篇关于用户创建外部URL以搜索元数据/标签参考的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!