我試圖使用Sharepoint 2013 restful web-api從sharepoint數據表中獲取數據。對於大多數列我得到我想要的價值,但對於一列我只得到一個鏈接。 關於如何獲得價值而不是鏈接的任何想法?如果可以提供幫助,但我無法直接訪問,我可以提出請求以更改共享點數據表。我已經嘗試了SOAP UI和Chrome,並獲得了相同的結果。sharepoint web api返回一個不是值的鏈接
這是簡化的寧靜GET http://xxxxx.xxx/_vti_bin/ListData.svc/XXXXUserRegistry?$選擇= XXXXUsername
這裏是鏈接到我想要的數據響應的一部分。
<link rel="edit" title="XXXXUserRegistryItem" href="XXXUserRegistry(1600)"/>
<link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/XXXUsername" type="application/atom+xml;type=entry" title="XXXXUsername" href="XXXXUserRegistry(1600)/XXXXUsername"/>
謝謝,這解決了我的問題 – David