New answers tagged

1 vote
Accepted

Users with contribute permission can call REST API to Break Role Inheritance , but can not make a REST API call to get all role assignments

I just tried the same scenario to get the role assignments of list items using power automate flow: Here are my findings: User Permissions Flow works/Error Contribute Error Edit Error Design ...
  • 30.5k
0 votes

Sharepoint REST ValidateUpdateListItem return error response

The field value should be in this form: "FieldValue": "[{'Key':'i:0#.w|aaron@testdomain.com'}]" Please see Update file metadata with Rest API using ValidateUpdateListItem in ...
  • 11.8k
1 vote
Accepted

Getting a file by serverrealtive url is raising this error "Server relative urls must start with SPWeb.ServerRelativeUrl"

"Server relative" means you have to start the URL after the host name, so the server relative URL of that file would be /sites/ABC/Lists/Invoices/Attachments/1/PDF_200001.pdf What you ...
  • 12.3k
1 vote
Accepted

Filter Query with Rest API (Internal Name or New Name)

Try using endpoint like this: "/_api/web/lists/GetByTitle('Leave Request')/items?$select=EmployeeName/Title,ID,StartDate,EndDate,LeavePurpose,Title,HRStatus,SupervisorStatus&$expand=...
  • 30.5k
1 vote

too many lookup fields in the Rest API URL exceed the size limit

Try below suggestions to reduce the number of characters in URL endpoint: Use LookupColumnId instead of LookupColumn/Id in the $select query. Use only LookupColumn instead of LookupColumn/Id in the $...
  • 30.5k
0 votes

Get user properties from active directory based on user Id when user does not exist in the site using REST API

You can get those details using Microsoft Graph API mentioned below https://docs.microsoft.com/en-us/graph/api/user-list?view=graph-rest-1.0&tabs=http Below are some helper links based on platform ...
0 votes

Is it possible to make batch requests on different sites? And what about the same site but different subsites?

Can't find it in official docs for SP REST API or OData protocol, but in according to the PnP JS docs, it is not. It seems search is the only way to do it in single request.
  • 21
0 votes

Rest API to return all Terms and their GUID

CSOM and AJAX calls are not recommended within SPFx apps - as these are older methods so will probably be depreciated. I know the post replies are from two years ago, but perhaps the forum supervisors ...
  • 21
0 votes

Explain SP authentication please

You are being throttled. You can't send too many API requests without being throttled. HTTP 429 indicates the calling application sent too many requests in a time window and exceeded a predetermined ...

Top 50 recent answers are included