Sharepoint 列表项api正在返回空的ServerRedirectedEmbedUrl
我需要为文件嵌入url,但列表项的api工作不正常:Sharepoint 列表项api正在返回空的ServerRedirectedEmbedUrl,sharepoint,sharepoint-rest-api,Sharepoint,Sharepoint Rest Api,我需要为文件嵌入url,但列表项的api工作不正常: {{url}}/_api/web/lists/GetByTitle('Documents')/items API正在返回.xlsx文件的嵌入url,但未返回.xls文件的嵌入url 样本响应: { "value": [ { "FileSystemObjectType": 0, "Id": 8,
{{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": "",
"ContentTypeId": "0x010100522CD6520C5CE14A8082461F602D4311",
"ComplianceAssetId": null,
"Title": null,
"ID": 17,
"Created": "2020-09-20T06:55:51Z",
"AuthorId": 11,
"Modified": "2020-09-20T06:55:51Z",
"EditorId": 11,
"OData__CopySource": null,
"CheckoutUserId": null,
"OData__UIVersionString": "1.0",
"GUID": "f8d28ad4-74b3-4c2c-adc6-5ccf05bba0d7"
}
]
}
{
“价值”:[
{
“FileSystemObject类型”:0,
“Id”:8,
“ServerRedirectedEmbedUri”:https:///_layouts/15/Doc.aspx?sourcedoc={05026c29-6b6e-45ba-8694-e17391246eb4}&action=interactivepreview“,
“ServerRedirectedEmbedUrl”:https:///_layouts/15/Doc.aspx?sourcedoc={05026c29-6b6e-45ba-8694-e17391246eb4}&action=interactivepreview“,
“ContentTypeId”:“0x010100522CD6520C5CE14A8082461F602D4311”,
“ComplianceAsetId”:空,
“标题”:空,
“ID”:8,
“已创建”:“2020-03-19T19:49:16Z”,
“作者”:11,
“修改”:“2020-03-19T19:49:16Z”,
“社论”:11,
“OData_uuuCopySource”:空,
“CheckoutUserId”:空,
“OData_uuu版本字符串”:“1.0”,
“GUID”:“cdc54e8e-86c0-48af-ba27-1abbd50d6fca”
},
{
“FileSystemObject类型”:0,
“Id”:17,
“ServerRedirectedEmbedUri”:空,
ServerRedirectedEmbedUrl:“,
“ContentTypeId”:“0x010100522CD6520C5CE14A8082461F602D4311”,
“ComplianceAsetId”:空,
“标题”:空,
“ID”:17,
“已创建”:“2020-09-20T06:55:51Z”,
“作者”:11,
“修改”:“2020-09-20T06:55:51Z”,
“社论”:11,
“OData_uuuCopySource”:空,
“CheckoutUserId”:空,
“OData_uuu版本字符串”:“1.0”,
“GUID”:“f8d28ad4-74b3-4c2c-adc6-5ccf05bba0d7”
}
]
}
有人能说出背后的原因吗