Skip to content

Commit 88eb153

Browse files
0xTahirVesaJuvonen
authored andcommitted
Lookup Column Changes for SP2016 (SharePoint#2313)
* Lookup Column Changes Added notes for how to call Lookup column via REST API which has been changed for SP2016. * Fixed spelling
1 parent ecb481a commit 88eb153

File tree

1 file changed

+14
-3
lines changed

1 file changed

+14
-3
lines changed

docs/sp-add-ins/working-with-lists-and-list-items-with-rest.md

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,17 @@ Headers:
171171

172172
<br/>
173173

174+
### Lookup column changes
175+
176+
When referring to a lookup column inside a list using REST API, use the display name of the lookup column instead of the internal name.
177+
178+
```
179+
http://site url/_api/web/lists/getbytitle('ListName')/Items?&$filter=LookupColumnId eq 1
180+
181+
```
182+
183+
<br/>
184+
174185
<a name="ListItems"> </a>
175186

176187
## Working with list items by using REST
@@ -208,7 +219,7 @@ headers:
208219

209220
The following XML shows an example of the list item properties that are returned when you request the XML content type.
210221

211-
```XML
222+
```xml
212223
<content type="application/xml">
213224
<m:properties>
214225
<d:FileSystemObjectType m:type="Edm.Int32">0</d:FileSystemObjectType>
@@ -235,7 +246,7 @@ Retrieves information about the list and its data. Using this API you can retrie
235246
POST /_api/web/GetList(@listUrl)/RenderListDataAsStream?@listUrl=%27%2Fsites%2Fteam-a%2Flists%2FList%27
236247
```
237248

238-
#### URI Parameters
249+
#### URI parameters
239250

240251
Following properties can be added as query string parameters to manipulate the returned data.
241252

@@ -513,7 +524,7 @@ The following example shows how to create a list item in a folder.
513524
POST /_api/web/lists/GetByTitle('Test')/AddValidateUpdateItemUsingPath
514525
```
515526

516-
#### URI Parameters
527+
#### URI parameters
517528

518529
None
519530

0 commit comments

Comments
 (0)