Skip to content

Commit 08d3fce

Browse files
bcameron1231VesaJuvonen
authored andcommitted
Fixing Typo (SharePoint#4582)
Adding '?' for proper Odata Syntax. Fixes SharePoint#4580
1 parent 10a4a09 commit 08d3fce

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/sp-add-ins/use-odata-query-operations-in-sharepoint-rest-requests.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,11 +64,11 @@ Use the [$top](http://www.odata.org/documentation/odata-version-2-0/uri-conventi
6464
6565
The `$top` option enables you to select the first *n* items of the return set for return. For example, the following URI requests that only the first ten items in the prospective return set actually be returned:
6666

67-
`http://server/site/_api/web/lists('<guid>')/items$top=10`
67+
`http://server/site/_api/web/lists('<guid>')/items?$top=10`
6868

6969
The $skiptoken option enables you to skip over items until the specified item is reached and return the rest.
7070

71-
`$skiptoken=Paged=TRUE%26p_ID=5`
71+
`?$skiptoken=Paged=TRUE%26p_ID=5`
7272

7373
> [!NOTE]
7474
> When using these query options, take into account that paging in OData is ordinal. For example, suppose you are implementing a next page button to display SharePoint list items. You use the REST service to enable the button to return items 1 through 20 when clicked, and then items 21 through 40, and so on. However, suppose another user deletes items 4 and 18 between clicks of the next button. In such a case, the ordinal positioning of the remaining items is reset, and displaying items 21 through 40 actually skips over two items.

0 commit comments

Comments
 (0)