簡體   English   中英

使用REST API在線獲取SharePoint 2013中包含附件和其他字段數據的列表數據

[英]Get the List data including attachments and other fields data in SharePoint 2013 online using REST API

我有一個SharePoint 2013列表,其中包含EmpId,EmployeeFirstName,EmployeeLastName,DOB等幾個字段,對於每位員工,我將圖像作為附件添加到每一行。 現在,我想提取每個帶有附件的員工的數據。

是否可以在一個REST API調用中獲取包含附件的員工列表數據?

https://kuldeep.sharepoint.com/TQA/_api/web/lists/getbytitle(%27EmployeeList%27)/Items(3)/AttachmentFiles

謝謝,科爾迪普

當然,請使用$select$expand查詢選項將AttachmentFiles字段指定為投影字段。

例如:

/_api/lists/getByTitle('<list title>')/items?$select=Title,AttachmentFiles&$expand=AttachmentFiles
 /_api/web/lists/getbytitle('list name')/items?$select=Title,AttachmentFiles&$expand=AttachmentFiles 

將提供FileName和ServerRelativeUrl。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM