Episode #125 of the Stack Overflow podcast is here. We talk Tilde Club and mechanical keyboards. Listen now

Questions tagged [sharepoint-rest-api]

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

Filter by
Sorted by
Tagged with
0
votes
0answers
11 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
0answers
26 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
25 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
50 views
+100

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
26 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
44 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
15 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
34 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
38 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
72 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
32 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
10 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
16 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
16 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
14 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
15 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
11 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
29 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....
1
vote
1answer
37 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
34 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
20 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
39 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
23 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
15 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
19 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
49 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
30 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
15 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
26 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
19 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
64 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 ...
0
votes
1answer
18 views

REST call to SharePoint Online from Designer Workflow

I have been trying to get user manager using REST call from SharePoint Designer [https://site_url/_api/SP.UserProfiles.PeopleManager/GetPropertiesFor(accountName=@v)?@v=%27i%3A0%23.f%7Cmembership%...
1
vote
0answers
20 views

What does the field “SharedWithInternalId” mean?

When getting fields in Sharepoint REST api, for all files it seems like the field "SharedWithInternalId" is always null. I have tried changing access and sharing settings but that only affects the "...
0
votes
3answers
34 views

Create List in SP OnLine Using C# or PowerShell

Not new to SharePoint but new to SharePoint OnLine. So, here's the question(s). Is there a way to dynamically create a list using REST,JSON, or C# in SharePoint Online? I've seen some sites ...
0
votes
0answers
17 views

How to access Sharepoint REST API from backend?

We are trying to access Sharepoint REST API from our backend server without user consent. We registered an app in Azure app registration portal by referring this(Get access without a user) and ...
0
votes
0answers
10 views

Moving a document with its metadata

I am using MS FLOW to move a document between two site collections keeping its managed metadata column content, but it so unreliable. I am using the MOVE FILE within MS FLOW. I put the columns in a ...
0
votes
1answer
25 views

403 FORBIDDEN code posting to list

I am trying to post to a list with a custom form. Each time I try to submit my for the console prints out a "403 FORBIDDEN" error. I have Site Collection Admin rights for the entire site. Here is my ...
1
vote
2answers
65 views

REST API: Can't find list with GetByTitle()

I'm having problems to get lists throught the REST API. I'm calling: /_api/web/lists/getbytitle('<list title>') I'm getting an error (List doesn't exists) with that libraries named with more ...
1
vote
1answer
11 views

Upload file content from API to sharepoint list item attachment

So I'm trying to upload a file, or multiple files, to a sharepoint as attachments to a list item. I have the code to upload the actual files but they're corrupt/unopenable when trying to access them ...
0
votes
3answers
39 views

Check if current user is member of SharePoint group or Not

I have this method to check whether the current logged in user belongs to a certain group (IT Department) or no? It returns true if the user is in the group. However I am member of that group but I ...
0
votes
0answers
22 views

SPFX rest api taking time to bind data on click

Hi i have wriiten function on click of button i am calling this function to bind data in table but it taking some time to bind, data also less it should not take time. i am using multiple rest call ...
0
votes
1answer
26 views

SPFx how to save some propeties to sharepoint list

I have got a SharePoint webpart written in SPFx. I need a sample how to save some properties to SharePoint list. Could You help me please ?
0
votes
1answer
65 views

spfx webpart react rest api

I am using REST API in my SPFx web-part and passing parameter in REST API but its not working as expected , there is some mistake in writing REST API within `` as parameter is not working: export ...
0
votes
1answer
26 views

How to update SharePoint Online Managed Metadata from another application

I would like to create a script on a server that does a daily update of a Managed Metadata term store item. Is it possible to programatically update the SharePoint Online term store from a script ...
1
vote
1answer
36 views

getting TypeError: allGroups.getByName is not a function

I am using this code example to redirect a user based on group, but I am facing this error message: TypeError: allGroups.getByName is not a function my code: <script src="https://ajax....
1
vote
1answer
67 views

SharePoint Online authentication with external Angular 8 web application

I've an external web application made with Angular 8 where I should display some data coming from our SharePoint Online site. I've created an user without license that has read-only permissions on a ...
0
votes
0answers
13 views

Call HTTP Web Service returns ResponseCode Unauthorized for SharePoint Online Workflow

I am trying to get user manager using REST call via HTTP Web Service in SharePoint designer. the Response Code returns unauthorised. I copied the HTTPs request into browser and checked, it is working ...
0
votes
1answer
29 views

How to make rest call to _vti_history for getting any previous version file in SharePoint

I want to make rest call or implement some JSOM mechanism to retrieve previous version file from _vti_history. For example: _vti_history/1024/Documents/Filename.docx Please guide me if this is ...
0
votes
0answers
12 views

Can we restore a document version in different share point library using jsom?

I want to know if we can restore/move specific version file using JSOM/REST to different library other than source library? Thanks, Kailash
2
votes
1answer
44 views

SharePoint REST API - Create lookup column with additional fields

I am trying to create a lookup column using the SharePoint REST API but can't figure out a way to pull the additional columns from the source list. I am using SP.FieldCreationInformation to do this. ...