Tag Info

New answers tagged

0

The issue is with your request digest -- refer back to the tutorial you mentioned under the section "What if i want to POST (Add) Data to my SharePoint List?" and make sure you follow steps 1-6; the request digest values also expire, so it needs to be done within a relatively short amount of time... If you're going to use REST with JavaScript anyway (and ...


1

Assume the list contains the following data: ID ListingOrder 1 1 2 null 3 2 Then you could consider the following options: Option 1 The items could be sorted in descending order: $orderby=ListingOrder desc, in that case the items for those listingorder property is not specified will be listed as the last ones. Result: ID ListingOrder 3 2 1 ...


1

You can use two queries in that case. First query - Get all items filter by ListingOrder not equal NULL Second query - Get all items filter by ListingOrder equal NULL Apply Order By only on First Query. Then merge the result sets.


0

Are you using this code against SharePoint Online / O365 or against an on-premise SharePoint server? AFAIK, the $batch operation is supported only in case of the former ones, see this post: SharePoint Online and the Office 365 APIs implement the OData $batch query option



Top 50 recent answers are included