Questions tagged [sharepoint-rest-api]

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

Filter by
Sorted by
Tagged with
0
votes
1answer
13 views

Sharepoint REST endpoint access denied error while access through postman

I'm trying to access the SharePoint REST service and trying to upload objects using the curl command. I have followed the steps from this blog. I was able to get pass through steps until getting the ...
0
votes
0answers
14 views

How to wait for site design application is finished?

I use some site designs I apply through HTTP REST call. Initially, I used the ApplySiteDesign function, which is synchronous. However, it started to fails with some site designs. No error returned but ...
0
votes
0answers
22 views

How to encode slash in field name of multi-select option?

I can't find a way to update a multiselect with a slash in it. In my research because of the error message "Error in query syntax" the problem is somehow how I encode the field name which ...
0
votes
0answers
8 views

Is there any modern search api introduced in SP online besides search REST api?

Because of the modernization happening in SharePoint online, is there any modification to the search api programmatically? Example as Graph api is there any modern search api available. As I ...
0
votes
0answers
12 views

get all one note file from a sharepoint document library using graph api

I would like to use garph api to get all the Onenote files in my Document library inside the folder MyNotebooks. so structure is like this SharePointSiteA --> SharePointsubSiteB --> ...
0
votes
1answer
30 views

SharePoint API: Invalid Access Token Resource

I am trying to obtain an access token for use with the SharePoint Rest API. For my organizations base site. I am able to obtain a token and use that token to make subsequent requests successfully. ...
0
votes
1answer
26 views

React - Sequence of methods

I have written following code to get current user group Ids and later from that Ids I wanted to filter data from SharePoint list. First I want to execute ServiceManager.getRemoteService()....
0
votes
0answers
8 views

Create content type with fields with javascript

I would like to implement the following steps with java script and the rest api. Create content type Add fields to a content type Create list and assign the created content type to it I have found ...
1
vote
5answers
284 views

SharePoint Online authorization issue 'Token type is not allowed'

I'm setting up a NEW O365 tenant developer SharePoint Online site to test the REST API using PostMan by following this. I can successful setup Add-ins and generate access token, but when trying to ...
0
votes
1answer
20 views

Using AddViewField in SharePoint Rest API to add multiple columns in list view

I have followed various google search that have allowed me to create a list view (for a SP List) using the REST API through Power Automate. I then managed to delete the columns (all of them). Finally ...
1
vote
1answer
20 views

Rest API show items if current log in user equal me

I have two user column in SharePoint 2013 RequestedFor and CC. I want to display items only if the user in either column is equal current log in user. So far I'm able to display items when Requested ...
0
votes
0answers
10 views

How to allocate more memory to the listdata.svc service (REST API) in SharePoint?

I'm running a two tier server and I'm thinking that the calls the rest api makes fall under the distributed cache server, but find little documentation on this. How would I grant/allocate more memory ...
0
votes
2answers
19 views

How do I retrieve the 'Created By' field using REST API

I am using the following function to retrieve data from a list using the SP REST API. All seems to work except for the 'Created By' field. How do can I retrieve data from the 'Created By' field. I get ...
0
votes
1answer
23 views

SPFx: Error in REST API call spHttpClient.get()

In my child component: I tried to make a rest call from spfx web part to get people results, but it throws errors. this.props.context.spHttpClient.get(query); Error: can't read property get of ...
0
votes
1answer
21 views

Is it possible to add different person-value items to SharePoint list using CSOM? C#

I don't think it is possible, but hoping I am wrong. I'm using a CSOM in a C# application to update a SharePoint list (SharePoint Foundation server). All of the items on the list are updated correctly,...
0
votes
0answers
30 views

Filter expanded properties with the REST API

I am trying to query a folder recursively for files that were created after a certain date. I am able to find the files by expanding file properties however I am unable to filter against the expanded ...
0
votes
1answer
21 views

How to get a specific listview's column datas with REST API and ajax javascript?

I want to be able to get the value in Column A of the selected document. I only want one column datas. And I can use Rest api and javascript.
1
vote
0answers
25 views

Bootstrap Select picker not showing any options

In a SharePoint online site, I have created an custom Page, In which I make a Cross-site Rest API request to get items from a list. Sometimes my bootstrap selectpicker is not showing no items, and ...
0
votes
1answer
27 views

How to upload multiple files using Sharepoint API with Javascript code

I have a script to upload single file with file name specified to sharepoint, I am looking how can we upload all the files that listed in a folder to sharepoint. Uploading single file var filepath = C:...
0
votes
1answer
37 views

How to get the Members of a Security Group via API

A customer of ours has their Sharepoint Online access permissions configured via (non-azure) security groups. We query the roles attached to an item in Sharepoint via the Sharepoint REST API with the ...
1
vote
3answers
51 views

Expanding People and Groups Column using React SPFx

Being new to SPFx , I've not able to retrieve values from people and group Attendee column Below are the steps I followed Defined Attendee in the below interface export interface IListItem{ ...
2
votes
2answers
48 views

Create Site Page via REST API

I would like to create a Site Page via REST API with my own Title and Content. So far I tried to send a POST request but got an error: To add an item to a document library, use SPFileCollection.Add() ...
0
votes
0answers
15 views

Getting thumbnail data for documents with CSOM / API

In our project we're trying to integrate with SharePoint Online using SharePoint App-Only authentication method and client-side object model (CSOM) to retrieve data. This solution seems to be working ...
0
votes
2answers
57 views

How to read Retention Label applied column using REST API or CAML query

I am trying to read Retention Label applied using REST API but unable to read tried both values, tried CAML as well but not getting this field, can we read using API or is not possible? _api/web/...
0
votes
1answer
32 views

Call external API from SharePoint online using javascript

I am having HTML file for user input and use REST API for update into SharePoint list. we have a requirement to get value from external API. I am able run the below script from normal HTML form, and ...
0
votes
0answers
18 views

How can i retrieve the datas in one column from a list?

I have a big document library. And i am using C sharp. When the user selects one document from the frontend website(like click method), I want to be able to get the value in Column A of the selected ...
0
votes
0answers
23 views

Creating sharepoint discussion list item using REST API

I am consuming sharepoint discussion REST API's in my application. While creating new discussion (Reference: https://stackoverflow.com/questions/25050112/creating-a-sharepoint-2013-discussion-item-...
0
votes
0answers
15 views

Consume SharePoint REST API in another host

I try to consume SharePoint Rest API in my another web site (assume http://localhost/). I browse internet more than two weeks but I couldn't find something straight forward for this needs. I try to ...
0
votes
0answers
16 views

Making OAuth-authenticated cross-domain REST API calls to 2016 on-prem

My question is exactly this question, but specifically this part: how to use OAuth in SP 2016 on-prem from JavaScript? Which authentification endpoint must be used? Which flows are supported? We are ...
1
vote
2answers
53 views

Read Metadata column values using SharePoint REST API

Is there any way to read Managed Metadata column value in SharePoint using REST API?
0
votes
1answer
15 views

Rest Endpoint to get data from sharepoint catalog

I am able to get data from sharepoint list using this endpoint. But i want to know the endpoint to get data from sharepoint catalog. Actual URL List: https://siteurl/sites/Lists/Tracker/AllItems.aspx ...
0
votes
1answer
34 views

Create new list item with REST API and get item ID in function callback

Sometimes I need to create a new item with an attachment to a list in Sharepoint by using REST API. What I used to do to achieve this task was to first create the item in the Sharepoint list by using ...
0
votes
0answers
16 views

How to stop SharePoint REST from shortening site URLS on GetItems

We have a website that looks up some text from a SharePoint list and displays it on the site. In the list, the text is a rich text format and the URL is added as a hyperlink. Sometimes the hyperlink ...
0
votes
1answer
16 views

403 error when retrieving site' members

I am using the SharePoint REST API to retrieve site' members. However, some sites provide the 403 (Forbidden) error when retrieving members by using the Admin account. I guess these sites were created ...
0
votes
0answers
7 views

I'm getting 403 access denied errors on REST calls in Monitor Mode; how can I turn off Monitor Mode?

My sessions are all being redirected with a loading/splash screen telling me my session is being monitored. My SPFx webpart loads fine but any action I take that requires a REST call, I get 403 Access ...
0
votes
3answers
39 views

Get both columns in a list using REST

I have a list of tags with 2 columns, Title and Folder. https://i.stack.imgur.com/WGgIz.png I am currently querying the list using '/_api/web/lists/GetByTitle('Tags')/items' and am successfully ...
0
votes
1answer
15 views

Identify “additional” Lookup field and select its value via OData select/expand

I've created a list "My List" with a column called "RelatedRecord", which is a lookup against other items in "My List". When I defined the column, I selected the field &...
0
votes
1answer
16 views

Get country from people and groups field using rest API

I was able to get details from people and groups using rest api and with the help of the below link. https://ajaznusrat.wordpress.com/2012/06/21/using-the-sharepoint-user-type-field-people-or-group-in-...
0
votes
0answers
6 views

Look up columns not seen in XML when using Sharepoint API

Hi I am a new developer and I just started using SharePoint and the SharePoint API. I've tried searching for an answer to this but have not found one. When I use the SharePoint API request: https://{...
0
votes
1answer
30 views

How to get data from videos in asset library?

I have an asset library in SharePoint 2013 with lots of video files. How can I request the video url (.mp4), preview picture and video title from this library using a JavaScript API call?
0
votes
1answer
19 views

REST API to add replies to a share point discussion

I am able to post a reply to share point discussion with help of below link. REST Call to Post a Reply to a Discussion Board Topic w/o JSOM but here for posting a message ContentTypeId is required.As ...
0
votes
1answer
22 views

Recommended Microsoft 365/SharePoint REST API/Graph API JS library - for custom solution not in SharePoint context

I'm after a reliable REST API JS library i can use to build a custom solution using SharePoint Online backend rest services. This app would be hosted outside the SharePoint context I know of this the ...
0
votes
1answer
23 views

IsCurrentVersion is TRUE for the lat two versions of an item in a SharePoint List

I have enabled version history for my list with approval need, and am doing some API calls to get the last n versions of that item through: _api/web/lists/getbytitle('Mylist')/items(ItemID)/versions?$...
0
votes
0answers
15 views

getting document from Sharepoint Document library

Can anyone guide me to how to get document from Sharepoint Library using rest api in Spfx ,tried using below code to bind static data in Detailed List ,but unable to get rest api call ? ...
0
votes
1answer
35 views

Sharepoint Online - Upload file not working with Sharepoint REST API

I want to upload a file to a sub folder of a document Library in Sharepoint Online. I have an error when posting the file: "URL is not web relative". I don't understand because I can read ...
0
votes
1answer
23 views

Can a user who is not a SharePoint Online administrator create a site collection with a template other than communication site or team site?

I have a user who I do not want to promote to a SharePoint Administrator, but I do want to allow them (because they are a developer) to create site collections with the template DEV#0 without having ...
0
votes
3answers
47 views

Download file contents from SharePoint Online via REST

I have a site on SharePoint Online with some documents in the Shared Documents document library I'd like to download via REST. All the calls I make are returning a bunch of file properties in XML. I ...
0
votes
0answers
13 views

Primary key column and BdcIdentity is not updating in sharepoint external list using rest api

I am creating CRUD operation on SharePoint external list (SQL Table) using REST api. My table structure is as below, SerialNo-int-mapped with external list. Title-nvarchar(50) I created external list ...
0
votes
1answer
31 views

Sharepoint REST API - Filter by Negative Number

I'm trying to filter by a negative number but it only seems to work with zero or positive. Does anyone know how to fix this? My query is below: spUrl + '/SitePages/checklist.aspx?filter=ChecklistID/...
0
votes
1answer
26 views

Rest api to get all Documents from all subsites

I have 5 subsites (Sub1,Sub2,Sub3,Sub4,Sub5) and all subsites is having Document library name (PublishedDocuments) Sub1 - PublishedDocuments Sub2 - PublishedDocuments Sub3 - PublishedDocuments Sub4 - ...

1
2 3 4 5
27