问题描述
我需要为文件嵌入url,但列表项的api无法正常工作:
{{url}}/_api/web/lists/GetByTitle('Documents')/items
API返回.xlsx
文件的嵌入URL,而不返回.xls
文件的嵌入URL。
示例响应:
{
"value": [
{
"FileSystemObjectType": 0,"Id": 8,"ServerRedirectedEmbedUri": "https://<host>/_layouts/15/Doc.aspx?sourcedoc={05026c29-6b6e-45ba-8694-e17391246eb4}&action=interactivepreview","ServerRedirectedEmbedUrl": "https://<host>/_layouts/15/Doc.aspx?sourcedoc={05026c29-6b6e-45ba-8694-e17391246eb4}&action=interactivepreview","ContentTypeId": "0x010100522CD6520C5CE14A8082461F602D4311","ComplianceAssetId": null,"Title": null,"ID": 8,"Created": "2020-03-19T19:49:16Z","AuthorId": 11,"Modified": "2020-03-19T19:49:16Z","EditorId": 11,"OData__copySource": null,"CheckoutUserId": null,"OData__UIVersionString": "1.0","GUID": "cdc54e8e-86c0-48af-ba27-1abbd50d6fca"
},{
"FileSystemObjectType": 0,"Id": 17,"ServerRedirectedEmbedUri": null,"ServerRedirectedEmbedUrl": "","ID": 17,"Created": "2020-09-20T06:55:51Z","Modified": "2020-09-20T06:55:51Z","GUID": "f8d28ad4-74b3-4c2c-adc6-5ccf05bba0d7"
}
]
}
谁能说出背后的原因?
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)