Questions tagged [sharepoint-rest-api]

Using the Representational State Transfer (REST) interface provided by SharePoint

688 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
18
votes
1answer
579 views

New List Experience allow bypass security bits (Item-level Permissions)

We recently found out (thanks to junior QA) that new list experience simply ignores security bit setting on list. I did some tests and I can confirm this on SharePoint Online. Below, you can find full ...
5
votes
1answer
261 views

Get number of views of blog post in Blog Site using Javascript Object Model or Rest API

How to get the total number of views of blog post in Blog Site using Javascript Object Model or Rest API ? Blog Post view will be count only one time for one user.
5
votes
0answers
255 views

Empty result set with Folders SharePoint Online REST api with throttling

I am using the folders REST api with SharePoint Online to return subfolders for a folder: /_api/web/GetFolderByServerRelativeUrl('folderServerRelativeUrl')/folders. This works great until the number ...
5
votes
0answers
1k views

Authenticate to SharePoint REST API from external service

I am trying to figure out how to authenticate calls to our on premises SharePoint 2013 REST API. So far, I've come across a lot of blogs that show you how to do it for SharePoint online. Here's one ...
4
votes
2answers
2k views

Authentication in SP On-Prem -Postman

We can authenticate SP Online sites via clientid/client secret and generate access token. How can we authenticate in on-prem environment? We don't want to pass username/password to authenticate the ...
4
votes
1answer
293 views

Get SubFolders using Sharepoint REST API and show them in HTML DIV

I want to retrieve Subfolders using SP REST API and check if there is any created folder and If it exists, display HTML content like: <label>SubFolder Title</label> for each SubFolder. All ...
4
votes
0answers
438 views

How to exclude the null values in SharePoint search REST API

I am using the SharePoint search api to get the documents from the libraries. I have a managed property call L1DTI corresponding to a custom column. Now I do not want the search results where this ...
4
votes
3answers
2k views

Get columns type via REST

I successfully managed to get columns names but now I'm trying to get columns type via REST but surprisingly I didn't found something on it in documentations (or maybe I missed it). It's really ...
4
votes
0answers
203 views

Granting Library permissions to external users using REST API

Is there a possibility of inviting external users by e-mail and granting them collaborate permissions using the SharePoint REST API? (See the picture for reference) I have successfully managed to stop ...
4
votes
0answers
333 views

Rest api to post documents, pictures in custom news feed web part

I have created custom web part for news feed.I can post text content through the rest API ,but I need to post images and documents through the rest API. I followed msdn blog also.In msdn blog text ...
4
votes
0answers
139 views

Rest API Data filter from Lookup column by current user and show in dropdown

I want to show data in lookup column. from a list which contains lookup column and Username and another list which contains lookup value. Example: List1 contains Text column value and List2 ...
3
votes
0answers
623 views

Microsoft Graph Call API Error - Application is not registered in our store

I am using Postman to run Microsoft Graph REST API for making outbound call similar to yours. I have followed steps as suggested in https://docs.microsoft.com/en-us/graph/auth-v2-service but still ...
3
votes
0answers
171 views

How to login via ADFS to SharePoint via REST API

I cannot seem to remotely authenticate via a REST API script for a SharePoint 2016 on premise installation that is using ADFS for authentication. In my case, I am using remote queries using ...
3
votes
1answer
167 views

ListItemChangesSinceToken doesn't page correctly?

I'm trying to page through getListItemChangesSinceToken to get an entire list and then any changes to it but I'm getting very inconsistent results. This is what I do to get the initial list of ...
3
votes
1answer
971 views

Sharepoint Item rest query How to get the multiline column value which has append text property set true

I have a multiline column named as "Notes" in a list. This column has the "append text" property set to true. So when I retrieve the item I am getting this column null value. Please help me query this....
3
votes
0answers
504 views

SPException User cannot be found rest api

Hoping you can help, I currently have a REST query that returns a number of items however this is currently returning 'User cannot be found' { "odata.error": { "code": "-2146232832, ...
3
votes
0answers
927 views

Using Rest API call to get list item in SharePoint 2010 workflow

I am trying to get list item using REST API syntax in SP Designer workflow. The url format is as follows: https://example.com/_api/web/lists/GetByTitle('List%20Name')/items(2952)?$select=...
3
votes
1answer
958 views

What is the correct way to create a custom action using REST API in SharePoint Online?

I'm trying to use Microsoft Flow and the Send an HTTP request to SharePoint action to deploy an SPFx application customizer to a modern team site. I'm able to use the /_api/Site/UserCustomActions ...
3
votes
0answers
806 views

Sharepoint Online Rest api 403 forbidden

Trying to build an external c# web app that pulls information from SharePoint online using the rest api. rest call: https://mysite.sharepoint.com/sites/mySubsite/_api/web/lists/GetByTitle('My Repo')/...
3
votes
1answer
137 views

REST API equivalent of SPRoleAssignmentCollection.AddToCurrentScopeOnly

To add a custom permission to a List or an item, we can use SPRoleAssignmentCollection and we can also use AddToCurrentScopeOnly to avoid adding users with Limited Access permission to the parent. In ...
3
votes
2answers
164 views

Create folder in recently created folder

I'm using the function below to create a folder and I'm trying to make it also create a subfolder within the newly created folder. CreateFoldersbyparent("abc","") CreateFoldersbyparent("abc","\test") ...
3
votes
1answer
482 views

What is the purpose of "EntityPropertyName" property of field?

I am getting all list fields using REST API, In result, I found there is "EntityPropertyName" property for each field. For some fields, it shows exactly same value as "InternalName" property But for ...
3
votes
0answers
1k views

What is the Max File Size which can be uploaded to document Library through Rest API?

I am assigned with the requirement to upload multiple documents to the SharePoint online document library through rest API I have seen in the MSDN documentation that max limit is 2GB I want to know ...
3
votes
0answers
840 views

Search the document library using rest api in Sharepoint including its content

I dont require sharepoint search answers.I require using JS/Json/Web service/rest api.If i type anything in search box in top nav it should go to another page and show the results.Is there any way to ...
3
votes
0answers
69 views

How to show sharepoint context menu on my javascript page?

I have created a page and created list with the help of REST APIs, and also done some styling. This all working fine, but I need to show the custom sharepoint list context menu on this as below image. ...
3
votes
1answer
155 views

No default value for a column when copying files using rest API (SharePoint 2013 standalone)

I am trying to copy files from one SharePoint folder to another, using REST API, but I see that although all the files are copied, only some get default value for a particular column, while others do ...
3
votes
0answers
384 views

Uploading Large PDF Files in Sharepoint Library

I want to upload large PDF Files in a Sharepoint Library . I tried from normal code from GetFolderByServerRelativeUrl method and it is working fine , but taking too much time.(for ex. a PDF of size ...
3
votes
0answers
886 views

Search query for keyword search in a particular list Sharepoint Hosted app/add in Online

I am trying to add keyword search functionality using REST api on a particular list. I have got the result using the query as : var queryUrl = appWeb + "/_api/search/query?querytext='" + keyWord + "+...
3
votes
1answer
858 views

Filter list items using custom field type in REST API

I have a custom field type created by inheriting default SPFieldLookup type field. I have a SharePoint custom list with these type of fields. I want to fetch list items from this list using REST API. ...
2
votes
0answers
18 views

How to use paging SharePoint lists along with sorting and filtering

I am trying to apply paging in a SharePoint list. Everything works fine with the following query: const queryUrl = `${context.pageContext.web.absoluteUrl}` + `/_api/web/lists/GetByTitle('...
2
votes
1answer
183 views

SP Online generate refresh token for testing REST api calls in Postman

I'm refining SPO API calls intended for a mobile app project using Postman, and all is fine except the access token keeps expiring after maybe a day. How do I get the "refresh token" to work ...
2
votes
1answer
169 views

Get last modified fields from version history

When I look at the version history of an item I can see the last version, modified date and the fields that were modified. If I use the following rest API endpoint _api/web/Lists/getbytitle('...
2
votes
0answers
143 views

Get Quick Launch by REST call ignoring hidden links

Sharepoint 2019 on-premise. I'm trying to get a quick launch menu using this query: /site/_api/web/Navigation/QuickLaunch?$expand=children It returns all menu items from the Site Settings > ...
2
votes
0answers
28 views

REST API - How to check whether a user's email id is currently active?

How can I find a user who has access to my SharePoint site is active? Sometimes, a user may delete his/her email id. I want to find out a user who uses my SharePoint Site is still active and doesn't ...
2
votes
1answer
131 views

How to update approval comments of a SharePoint task list

I am trying to perform an approval using REST API in SharePoint 2013. I am able to successfully Approve/Reject but unable to read or save approval comments. I couldn't figure out what is the column ...
2
votes
0answers
36 views

SharePoint Search REST API: what does IsMissingUnifiedGroups mean?

When using the SharePoint search REST API, we see: "Properties": [ ...omitted, { "Key": "IsMissingUnifiedGroups", "Value": "true", "ValueType": "...
2
votes
1answer
2k views

Multiple $filter in OData query

Here is my OData query: https://XXX.sharepoint.com/sites/pwa/_api/ProjectServer/Projects?$filter=Id eq guid'xxxx'&$select=Id,Name,StartDate&$expand=Tasks&$select=Tasks/Id,Tasks/Name I ...
2
votes
0answers
1k views

Power automate Create a flow from an existing flow

I am looking for a method how to create a flow automatically from an existing one, I found that there is some Power Automate action like (Get flow, Create flow ... etc) and I believe Create flow will ...
2
votes
1answer
115 views

SharePoint Online OOTB form access denied error

I have a SharePoint list form which has been customized using SharePoint Designer. I am using the script to populate logged in user details in the form. I have full control of the site and list. So ...
2
votes
1answer
173 views

Call Taxonomy from .NetCore Blazor

I need to call the Sharepoint Taxonomy API. As CSOM is not available for .NetCore 3.0 I want to use the Taxonomy Internal Service Rest API: https://docs.microsoft.com/en-us/previous-versions/office/...
2
votes
2answers
614 views

REST API: How to get error details of Field Validation errors, SPListDataValidationException

I am using pnpjs to add items to a list like so: this.spClient.web.lists.getByTitle(this.spList).items.add(requestList); If requestList has items that do not pass column validation of the Sharepoint ...
2
votes
2answers
4k views

Connect to Sharepoint online REST API using CURL

I'm have created a survey in my company sharepoint online site. The response is collected in a list. I want to extract the data from this list by sending a CURL request from another server to REST API ...
2
votes
0answers
103 views

Get document library size (REST API)

Does anybody know if there's any property on the document libraries that tells me the size of it? Or how many of the items that's folders and how many thats's files. I know I can query each library ...
2
votes
0answers
762 views

The maximum number of bytes allowed to be read from the stream has > been exceeded

I'm trying to create a list item through REST api, but the multitext field contains content larger than 1mb and I'm getting this error: "The maximum number of bytes allowed to be read from the ...
2
votes
1answer
81 views

sharepoint 2013 on-premise copy document between site collections using rest api

Can I copy documents between site collection using rest api? I know its possible within the same library and also between sub-site. I need to send copies a number of documents from one library to ...
2
votes
0answers
43 views

How to receive error description of invalid REST call in required language?

If my REST call to SharePoint server is invalid it returns error information with code and description, but always for xml:lang="en-US" language. For example: <?xml version="1.0" encoding="utf-8"?&...
2
votes
0answers
54 views

What permissions do I need to get the request digest of a SharePoint site using SharePoint's REST API?

What permissions do I need to get the request digest of a SharePoint site using SharePoint's REST API? If I have view only access to the site but I have contribute access to a list on the site can I ...
2
votes
0answers
189 views

Getting the direct link to image stored in Sharepoint Library on external site

I have a company public website that is using some images from our Sharepoint internal site. I have an API that is getting the content from the list as well as the direct image url that goes in the ...
2
votes
1answer
2k views

Accessing SharePoint site list from Angular client

If I go to Microsoft's Graph Explorer and use a URL like: https://graph.microsoft.com/beta/sites/4development106.sharepoint.com:/sites/DBSchenker:/lists/OEC_Docs/items I can see my request succeeds. ...
2
votes
0answers
70 views

Sharepoint Online REST API - cannot get .aspx files

I'm using a Java app to get files from sharepoint online. I'm using the following REST API endpoint: apiUrl = BASE_API_URL + "/web/Lists/GetByTitle('" + sharepointList + "')/Items?$select=...

1
2 3 4 5
14