Questions tagged [sharepoint-rest-api]

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

Filter by
Sorted by
Tagged with
0
votes
0answers
15 views

Include Suitebar on custom application

I have a custom application built using VueJS and SharePoint Rest apis that is hosted on SharePoint, I am looking to include the suitebar, does anyone have any experience on this, specifically looking ...
0
votes
1answer
37 views

Help with using Caml in rest api calls - filtering doesn't work for me

I'm trying to filter a Posts list(Blog) by month and year. I created a calculated column and used the Published Date to extract month and year. But my below code doesn't filter correctly when i use ...
0
votes
1answer
194 views

REST API: How to find groups with “Full Control” permission level using Id and RoleTypeKind

in a javascript file, using Rest API, I need to get groups with full control as permission level. I call _api/web/lists/GetByTitle('MyTitle')/items(23)/roleassignments?$expand=roledefinitionbindings ...
0
votes
1answer
53 views

Applying site theme in REST API

I have 300 site collections i need to change the theme on. I know you do this by cog -> change look -> theme and then you choose the theme you require. I have seen /_api/thememanager/ApplyTheme API ...
0
votes
0answers
25 views

Adding a List Item with Managed Metadata and Multiple Choice

I have been using the Microsoft Graph to do a lot of SharePoint stuff, but am finally stumped. I need to add a list item with both managed metadata and multiple choice columns. This does not seem to ...
0
votes
0answers
29 views

REST API: How to retrieve name of permission level in a specific language

Using Rest API I get the name and description of roles but, setting a local language on my account, I can get them only in local language. I need to retrieve names and descriptions in English, any ...
0
votes
2answers
116 views

How to filter a list using a lookup value field via listdata.svc

I have a Posts list(Blog) I would like to use the rest api call below to filter the list using a lookup value Category When i test it using the Byline field below it works http://Site/news/_vti_bin/...
0
votes
1answer
32 views

Get all subfolders and files in one call and limit fields returned, plus sorted alphabetically

REST get all subfolder and files in one call, limiting the fields returned and sort by folder or file name. I currently have a URL at: https://domain.sharepoint.com/sites/subsite/_api/Web/...
0
votes
1answer
42 views

How to fix Microsoft Bing API Maps error

I am trying to use the BING Map API but I'm getting stuck. My longitudes and latitudes are stored in a SharePoint list. I get the following error but not sure why Uncaught TypeError: Cannot read ...
0
votes
1answer
51 views

Sharepoint Cross Domain Issue (Edge Browser)

I am trying to do post action from cross domain site and i am getting below error: HTTP403: FORBIDDEN - The server understood the request, but is refusing to fulfill it. Code: var formDigest; $....
0
votes
2answers
29 views

Access object data following REST call

I am using REST to obtain a list of files in a specific folder within a document library. I am using the GetFolderByServerRelativeUrl endpoint and the call is returning the correct number of documents ...
0
votes
1answer
31 views

Find out SharePoint custom list items for which metadata is missing SharePoint 2013

We have a SharePoint 2013 custom list which is holding around 600000 records. Now I want to find out list items for which metadata is not filled.
0
votes
3answers
40 views

REST API update error

I am using vuejs with SharePoint. I get the following error in the function below. "The property 'columnName' does not exist on type 'SP.Data.RegisterListItem'. Make sure to only use property names ...
0
votes
1answer
137 views

Using Axios to update SharePoint list

Is anybody familiar with using REST API to update SharePoint lists using jquery? How can I convert this to Axios? Here is the Code: function UpdateListItem() { siteURL = ...
1
vote
0answers
22 views

Assigning a group to root of site collection for permisisons

Does anyone know from the top of their head, the REST API call for assigning a group and a permission to a root of a site collection.? I have been trawling through the documnetation for the last hour ...
0
votes
2answers
16 views

sharepoint rest api url not working when “&” is used in the filter query

sharepoint rest api with filter query involving '&' text throws 400 error while executing the get query example of the query https://test.xx.com/sites/talent/_api/web/lists/getbytitle('Function ...
0
votes
2answers
134 views

Convert Todays Date to a format that can be used in a SharePoint Workflow call http service action

I am trying to call REST API Inside a SHAREPOINT Designer Workflow based on a date query. my filter string is $filter=Created le '2019-04-28' however, Instead of the date value, I need a dynamic ...
0
votes
0answers
211 views

Authenticate SharePoint online REST API without user name and password

I am trying to build a console app that reads the data from SharePoint list. But i dont want to pass the user credentials in order to authenticate, instead use the token. Is this possible? I tried ...
1
vote
1answer
35 views

how to avoid hard-coding of client credentials in browser(front-end) for external web application when posting to SharePoint Online

I am able to successfully upload a file from external web application(SAP UI5, a javascript based framework) to SharePoint Online using SharePoint REST services. I have registered the app as a '...
0
votes
0answers
34 views

File uploaded to SharePoint library using JQuery and SharePointPlus js lib only from second click

I'm using createFile() method of SharepointPlus 5.2 js library to upload a file to a SharePoint 2013 library. It works perfect on most of the SP libraries. But on newly created SP libraries it throws ...
0
votes
1answer
339 views

Getting SharePoint news using rest API in SharePoint Online

Is there any rest API available to get the recent updates or news related to a site in SharePoint Online? How To Read The SharePoint News Using Rest API In SPFx I have found above post but it does ...
0
votes
1answer
36 views

get the sharePoint sites which the current user has access using REST API

Using RestAPI, how can i get the All sharePoint sites which the current user has access from the WebAppilication.
1
vote
2answers
318 views

RenderListDataAsStream not returning view guid

Good day! I have a peculiar problem. I have a SharePoint 2016 on premise setup. I am executing a post call renderlistasstream. The aim here is to get documents in increments of a 1,000. The rest ...
0
votes
2answers
108 views

System.IO.FileNotFoundException error when downloading file with “%” character using GetFolderByServerRelativeUrl REST API

A file with the following name exists in OneDrive browser. When the above file is downloaded using the following request, an error is returned. Request: /_api/web/GetFolderByServerRelativeUrl('%...
0
votes
2answers
56 views

Add External users to SharePoint User Group

I have created Html form with Email,Name etc. Accordingly form details i want to add user in SharePoint Site Group. Thanks in advance.
0
votes
0answers
54 views

How to parse JSON to return null as default if complex object empty/null/undefined?

Using HTTP Request to get SP item, having trouble parsing JSON to return anything for null object. Can return null for an empty string column as shown below, how to do so for a more complex object ...
0
votes
0answers
176 views

net::ERR_INSUFFICIENT_RESOURCES rest api Sharepoint

I am adding and updating item in SharePoint from excel but sometimes I get error in my get function: net::ERR_INSUFFICIENT_RESOURCES for some items and it get failed to update or add function ...
0
votes
0answers
119 views

REST API: How to get field names in different language

I am using the REST API via pnpjs and nodejs to access Sharepoint online. I'd like to get field descriptions and titles in a language which is different from the user's current settings. How could I ...
0
votes
1answer
1k views

The page you requested is temporarily unavailable. We apologize for the inconvenience, please check back in a few minutes

I am adding and updating 56 columns(include people picker column) and 4999 rows in sharepoint list through excel using rest api but after some time i get throttle temporary issue and it does not ...
0
votes
1answer
96 views

pnp.js folder.moveTo() error: Microsoft.SharePoint.Client.ResourceNotFoundException

According to the pnp.js docs at: https://github.com/pnp/pnpjs/blob/dev/packages/sp/src/folders.ts there is a method called moveTo() which presumably moves a folder to a destination. However, the ...
0
votes
0answers
12 views

Fetch my approved tasks as a group member using Rest API

I am having an approval workflow in which I assign a task to a group using SPD designer workflow when any member of the group approves the task, the task gets completed. Now, my question is, I have ...
1
vote
1answer
23 views

Rest API to get different data

I have the following code to get values of a column. function GetKPIS(EstruturaKPI){ jQuery.ajax({ url: "SITE/_api/web/lists/GetByTitle('KPI')/items?$filter=Title eq '" + EstruturaKPI + "'", ...
0
votes
0answers
21 views

SubmitFile SOAP call on completion of metadata - Content Organiser

If a user does not add all the required metadata on a document, then document stays in the drop off library - thats great and by design. If a user then ammends the metadata on a grid view for example, ...
0
votes
1answer
18 views

People / Group column looping through nested data

I am using Javascript / Jquery to pull list data. One of the fields is Author, which is a group / people field that allows for multiple users. I get the data, and I test if there is data in the ...
0
votes
1answer
106 views

Get Infopath Xml Form Views using Rest Api

I am basically trying to retrieve all the views configured inside an InfoPath XML form. For example: I have created 2 views in an InfoPath form. One is basically the Default View and One is a Read ...
0
votes
0answers
60 views

SPHttpClientResponse File download as Stream

I'm stuck on this one, I hope you can help me out to get this working... Here is the Use-Case aka setup: I have a fully working Backend (SpringBoot) which runs on localhost (Yes, CORS are fixed for ...
3
votes
1answer
236 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....
2
votes
1answer
238 views

Query site collection property bag in SPFx extension

I am building an SPFx Application Customizer for a Powell365 project, and trying to have it use custom properties from the current site collections's property bag. I already managed to get these ...
0
votes
0answers
77 views

Sharepoint crossdomain request (REST API)

I have the site (based on SharePoint 2013), for example https://test.com and I have my sites which are working in another domain https://my.test.com. My task is to get data from a list which is ...
0
votes
4answers
237 views

How to get value from Multi Lookup field using SharePoint rest API call?

I have one list with lookup column #lookupColOne and this value is used in #list2. #List2 have a lookup column of #List1 ID field. I want to get #list2 data along with #list1 lookup column values. ...
0
votes
0answers
86 views

Getting root folder only in search rest API

I am trying to get only the root folders in my search rest API. Is there a way to only fetch the root folders? In rest API we can do something like this to get only root folders: /_api/SP....
1
vote
1answer
27 views

PeoplePicker always inserts 1st person selected instead of array of each person selected

I'm trying build an array named visitorsIDs[] to get the values for a PeoplePicker in SharePoint API, but no matter who I pick in the peoplePicker, the id's that are sent are always the id's of the ...
0
votes
0answers
43 views

OfficialFile.asmx - content organiser - API

I need to be able to post an API call to move a document using the content organiser. Is this possible ? I completely understand REST API, but i have no knowledge to SOAP calls like : _vti_bin/...
1
vote
1answer
103 views

How to get the User Principle ID based on the Email Id

How to get the User Principle ID based on the Email Id provide in the textbox?
0
votes
1answer
204 views

Rest api create sharepoint list item

i am writing code where i am updating rows from excel for which i have used rest api but few of my column in sharepoint are choice , persongroup,date type, when i am trying to create item for that its ...
0
votes
1answer
407 views

Export Excel data to exisitng sharepoint list using jquery [duplicate]

can we build a solution in jquery where we can export excel data to existing sharepoint list number of column in excel will be 56 or more with 5000 rows , i have to use on JSOM
0
votes
0answers
16 views

Updating 1600 items - Error at 768 items - SharePoint Designer 2013 Rest Workflow Error

I'm using a SPD 2013 workflow to loop through my list and update two fields, but once it gets to 768 items it errors. I read that sharepoint online can throttle at 5,000 requests. I waited 24 hours ...
0
votes
1answer
28 views

When Multiples are Allowed - Finding the IDs of the People Selected in a peoplePicker

On another page, I have a peoplepicker saving to SharePoint (when only one person can be selected). I used this tutorial (https://www.c-sharpcorner.com/article/custom-people-picker-in-sharepoint-...
0
votes
1answer
63 views

How to use GroupBy in lookup field

I have a lookup column and i want to use groupby for that lookup column in rest api. Anyone suggest me how to do this?
0
votes
1answer
245 views

SPFx React REST API 403 error

I have created SPFx webpart with React. I am calling REST API to get documents from document library and it's work perfectly in workbench but in SharePoint page i am getting error 403 - Forbidden ...

1
3 4
5
6 7
25