Skip to content

Commit 261c630

Browse files
unowizVesaJuvonen
authored andcommitted
Update working-with-lists-and-list-items-with-rest.md (SharePoint#3966)
added snippet on how to get ListItemEntityTypeFullName
1 parent 796ad8c commit 261c630

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

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

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -504,7 +504,14 @@ content-type: application/json;odata=nometadata
504504
The following example shows how to create a list item.
505505

506506
> [!NOTE]
507-
> To do this operation, you must know the **ListItemEntityTypeFullName** property of the list and pass that as the value of **type** in the HTTP request body.
507+
> To do this operation, you must know the **ListItemEntityTypeFullName** property of the list and pass that as the value of **type** in the HTTP request body. Following is a sample rest call to get the ListItemEntityTypeFullName
508+
> ```
509+
> url: http://site url/_api/web/lists/GetByTitle('Test')?$select=ListItemEntityTypeFullName,
510+
> method: GET
511+
> Headers:
512+
> Authorization: "Bearer " + accessToken
513+
> accept: "application/json;odata=verbose" or "application/atom+xml"
514+
> ```
508515
509516
```
510517
url: http://site url/_api/web/lists/GetByTitle('Test')/items

0 commit comments

Comments
 (0)