Last call to make your voice heard! Our 2022 Developer Survey closes in less than a week. Take survey.
2 votes

How to detect enabled QuickEdit on a List or Library from client?

You can get the Quick Edit property value of list using SharePoint REST API. For all lists on the site: https://tenant.sharepoint.com/sites/siteName/_api/web/lists?$select=Title,DisableGridEditing ...
user avatar
  • 27.7k
2 votes

"Value does not fall within the expected range" Error when trying to add user to a sitegroup through REST API SP Online

Try using below code. I just tried this at my end and it is working for me: <script type="text/javascript" src="/sites/siteName/SiteAssets/jquery.min.js"></script> <...
user avatar
  • 27.7k
2 votes
Accepted

How to retrieve csv/json file from SharePoint document directory with RESTful call

You can use the REST API "/_api/Web/GetFileByServerRelativeUrl('/sites/mysite/test/JS File.js')/$value"to read data from js/csv files in the Document Library. An example: <script type=&...
user avatar
1 vote
Accepted

SharePoint REST API Query is Not Valid

My guess is that it has to do with wrongly placed single quotes. First, in that first example with the map(), after you build the filters array, you are going to end up with ["EmployeeName/Title ...
user avatar
  • 12.1k
1 vote

"Value does not fall within the expected range" Error when trying to add user to a sitegroup through REST API SP Online

The below code worked for me var groupId = 6; //SharePoint group id var userLoginName = 'i:0#.f|membership|testuser_01@TENANT.onmicrosoft.com'; //Login name of the user to be added $.ajax( { url: ...
user avatar
1 vote

How to detect enabled QuickEdit on a List or Library from client?

If you want to restrict the users from modifying list settings (ie, changing the Quick Edit settings) , why can't you restrict them using permission levels? If you provide 'Contribute' permission to ...
user avatar
1 vote
Accepted

REST API show items if current logged in user's department is not equal to other user's department

You can achieve the results using two API calls. I have created a 'TestDL' list having 'TestPerson' column of type Person. You need to use two rest API first API to get the department of logged in ...
user avatar
  • 442
1 vote
Accepted

SP Online rest api: How to get all properties/columns from folders within another folder in a single request?

Try adding ListItemAllFields to $expand to get additional details from folders like: https://***.sharepoint.com/sites/***/_api/web/GetFolderByServerRelativeUrl('/sites/***/Goods/')/folders?$expand=...
user avatar
  • 27.7k

Only top scored, non community-wiki answers of a minimum length are eligible