New answers tagged

1 vote
Accepted

SharePoint Rest API: MoveViewFieldTo syntax error

This syntax is wrong, field and index must be part of the body, not the path: POST https://your-webapp/sites/your-site/_api/web/lists/getByTitle('zTestList')/views/getByTitle('All%20Items')/viewFields/...
jleture's user avatar
  • 646
1 vote
Accepted

SP 2013 REST API: set list view column order

Yes, you can edit your view to add, move or remove fields with SharePoint REST API. It's working for both on-premise, including SharePoint Server 2013 and later, and SharePoint Online in Microsoft 365....
jleture's user avatar
  • 646
0 votes

Sharepoint REST api HTTP Error 403: Forbidden getting versions

Does your permission level has the checkbox "View versions" enabled?/_layouts/15/editrole.aspx?role=Edit
Danny's user avatar
  • 453
0 votes

Azure Sharepoint Application API Key generation

See this MS learn page. When connecting to SharePoint api you need to use a certificate. This example creates a .NET core app. But configuring the Azure AD app is the same for every code base you want ...
Danny's user avatar
  • 453
1 vote

Azure ACS retirement in Microsoft 365 - legacy SharePoint REST API impacted?

I think these api's will continue to work because they don't authenticate using ACS. Only SharePoint add-in model apps making use of clientid/secret use ACS for authentication. "/_api/" in ...
Danny's user avatar
  • 453
0 votes

SharePoint Search REST API does not return custom columns values

during my test i had the same issue and i found out that the way to retrieve these fields is by putting them in the query, try changing your query to this (IsDocument:true) AND (MGS_Hierarchy:*) ...
rread's user avatar
  • 1
0 votes

I want to retrieve SharePoint report using API & JSON. For example for getting the number of Applications between a set time period from list

If you are trying to fetch the SharePoint list items using the SharePoint REST API, you can use the code like below. Example - JavaScript/JQuery: <script type="text/javascript" src="/...
Ganesh Sanap - MVP's user avatar
1 vote

Retrieving files from sharepoint returns empty value array

I had the same issue when I used "siteAbsoluteUrl". let siteUrl = _spPageContextInfo.siteAbsoluteUrl; let url = siteUrl + "/_api/web/getFolderByServerRelativeUrl('<relative path to ...
Milan's user avatar
  • 21

Top 50 recent answers are included