Questions tagged [sharepoint-rest-api]

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

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

Invite external users to office 365 programmatically using "jsom"

I need to invite external users on office 365 using JSOM or REST API then as per requirements I need to get newly added user and will add that user into a SharePoint subsite's permission group. I can ...
0
votes
0answers
12 views

List view treshold exceeded

I have a problem when getting list items. When I want to filter them, I always get the error The attempted operation is prohibited because it exceeds the list view threshold. Event if I should not ...
0
votes
0answers
11 views

I am adding a file to the folder using SharePoint API showing content as base64string value

Does anyone have a link or document to make rest sharp SharePoint API to add a file to the folder with byte array payload? Any help is great; thank you in advance. GetFolderByServerRelativeUrl('list')...
0
votes
0answers
14 views

Get List item body content, format CanvasContent1

I'm own a website and I want to display on it Sharepoint data through the rest API. I managed to get Lists and lists items. But the content of the list item is in the key CanvasContent1. The ...
0
votes
1answer
17 views

Is it possible to dynamically add new choice field values/options if I check 'Allow fill in choice' to true (REST API)

Is it possible to dynamically add new choice field values/options while creating a new list item through rest API if I check 'Allow fill in choice' to true? Example The choice field 'ChoiceFieldName' ...
1
vote
1answer
1k views

.docx files uploaded to SharePoint through REST API being corrupted. Other file types okay

I have two ajax calls below. First to get the contents of a document on my server into an arraybuffer. Then a second call to a Flow to add the file contents into a new file on SharePoint. This works ...
0
votes
0answers
10 views

SPO link pages as translated versions using REST API

Is it possible to link already existing page as translated version of another using REST API? I found a nice article about how translations are formed https://www.eliostruyf.com/multilingual-apis-...
1
vote
3answers
9k views

Filter null value for SharePoint column using REST

I am trying to fetch the data based on my "EmpData" list. I am able to get the exact rows for the below Rest API query till I don't include "Null" filtration in my below rest var oDataUrl = siteUrl + ...
1
vote
0answers
15 views

SharePoint Server 2019 on-premise REST API Authentication

I need to read list data from SharePoint 2019 on-premise server, from an external server. I have tried calling the REST API but I am having trouble authenticating. Things I have tried: Calling REST ...
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
3answers
2k views

SharePoint 2013 REST API Filter hidden Fields

I have a little Problem. I'm trying to do the following. There is a Field on SharePoint List items called HasUniqueRoleAssignments that is hidden on a standard REST call. If I put it in the select ...
0
votes
0answers
7 views

Get a list of all of the available members who have access to a specific list who are part of Forms Based Authentication

If possible I would like to create a PS script that will return a list of all the users who have access to a specific list, specifically the members that are also members of the Forms Based ...
0
votes
1answer
8 views

List all the members of SharePoint groups with Graph API

Is there any endpoint in the Microsoft Graph API fore SharePoint Online to list all the groups and members of SharePoint groups? It must also be possible to manage the users from those groups. As ...
6
votes
3answers
15k views

A type named 'SP.Data.ClientsListItem' could not be resolved by the model. When a model is available, each type name must resolve to a valid type

I am trying to update a list item using rest api $.ajax({ url: _spPageContextInfo.webAbsoluteUrl + url, type: "PATCH", headers: { ...
0
votes
2answers
3k views

Save to a People or Group column using SP 2013 REST API by login name only (without the ID)

This question will be a duplicate of this one (which has no accepted answer). I am trying to save a SP 2013 list item using the REST API. One of the columns is a People or Group column. Normally ...
0
votes
1answer
25 views

Sharepoint Rest API, Get files from a list throwing unknown 500 errors only when a file is present

I've been setting up an app to query a Sharepoint Document list for files (amongst other things). Querying {{mainLink}}sites/{{subsite}}/_api/web/lists/Documents/Files on postman with the following ...
0
votes
0answers
27 views

Group by count of people picker column

Below is my rest call to get data from sharepoint now also want count value of each FunctionalManager to respect to his TeamMember so if I am FunctionalManager of 2 TeamMember will get count of 2 ...
0
votes
0answers
10 views

Site Collection for a logged-in user or user specific

I am having a problem getting specific user sites. I want the logged-in user to have a list of sites that have access. To achieve this goal, I am using the following: Site Address: https://{Company}....
1
vote
1answer
16 views

Get a Document Set's description field via the REST API

I need to get the description field from my list of document sets. I have a for-loop set up with the titles of each of the document sets, I now just need to query the REST API to return a description ...
1
vote
1answer
2k views

Update list item using REST Merge, but field names are ambiguous

I have a sharepoint online list which I am updating via javascript in the same sharepoint site. The list has two similarly named columns: Display name: "Learner Score" Internal name:"LearnerScore" ...
0
votes
0answers
33 views

Search REST search query with exact match, how?

We have a REST query to _api/search/postquery and it includes a query like this: ParentLink="https://{site}/{library}/{folder name}" Most of the time it is working correctly. But in some ...
0
votes
2answers
1k views

GetFileByServerRelativeUrl is returning 400 bad request

I am trying to download file from SharePoint using below code url ='https://site_url/_api/web/GetFileByServerRelativeUrl("/PraveenTest/Test/file_name")/$value' headers = {Authorization: "Bearer" + ...
1
vote
1answer
103 views

Org Chart not working for People pIcker

Reference of plugin https://www.jqueryscript.net/demo/Fully-Customizable-Organisational-Chart-Plugin-With-jQuery-OrgChart/ I am using List schema as TeamMember(PeoplePicker),FunctionalManager(...
0
votes
1answer
2k views

OData query to get the results of two specific columns

I stuck on how to get two specific columns of data. My query: {site}/_api/web/lists('{site_guid}')/items?$select&fields eq meatballColor,meatballExplained I only get 7 items coming back when it ...
1
vote
1answer
1k views

How can I create a alert through SharePoint REST API?

Is there any REST API which can create the alert on a SharePoint List? We have a customized website which user can view files on SharePoint, but when user want to subscribe to a folder or file ...
0
votes
0answers
22 views

Use search rest api to search in SharePoint list items

I have to search through the SharePoint list item and the content of attachments of the SharePoint list item which is in SharePoint Site A. I have used the below API https://abcv.sharepoint.com//_api/...
0
votes
1answer
150 views

Full Text Search Across Document Library

I am attempting to build a powerapp on top of a sharepoint list that can do both full text searching of documents and filter by metadata in the document library. I am currently stuck on being able to ...
1
vote
1answer
1k views

Send and HTTP request to Sharepoint with attachment

I've created a flow that will send an email to my group whenever there's a new request from our SharePoint site. I would like to add/attach an attachment in sending the email from sharepoint list. I'...
2
votes
1answer
17 views

Power Automate Reminder flow error

I am trying to create a flow that takes the Expiry date from the list and sends an email to outlook. This is my list: This is my flow: I have added this string (Should send a reminder when 1 day is ...
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 ...
3
votes
3answers
4k views

REST - filtering a value containing apostrophe

I have the following code: var requestUri = webAbsUrl + "/_api/web/Lists/getByTitle('Staff Directory')/Items?$\ filter=Title eq '" + currentUserEmail + "'&$\ select=*"; It works ...
0
votes
1answer
2k views

Get SharePoint data in Cross Domain using REST-API

We have (02) SharePoint farm in different domain and they are connected. We need to access data from Farm-A SharePoint List in Farm-B using Rest-API usually we calling REST API by just URL as below ...
1
vote
2answers
901 views

how to get the user profile properties of the user who has modified the item in the display form?

we have requirement to customize the display form. we need to show user profile properties for the user who has modified the item in the display form. any help would be appreciated.
0
votes
3answers
26 views

The data in API does not shown in the web part for User

I am very new to SPFx web part creation. I have created simple SPFx web part using typescript. Added package to app catalog then added in my page. The issue that I am facing is user doesn't read the ...
0
votes
2answers
2k views

How to download the historical minor version of a file in the SharePoint folder using REST API (and C#.Net)

I need to download the Older-Minor version of a File(.docx/.excl etc) inside the SharePoint folder using REST API. The URL would be: https://BaseURL/sites/SubSite/_api/web/GetFileByServerRelativeUrl('/...
0
votes
1answer
15 views

How to establish a real time connection to a list item using SharePoint Rest API

On my SharePoint home page I have a notification element that is ajax'd from a list item from the same site collection. I would like the user to always (or as often as possible) see the latest ...
0
votes
1answer
18 views

Adding a new item in the SharePoint list with multiple fields

My objective is to add a new item in a SharePoint list (Form) using REST API. My current code is: function AddData() { var listName = "Form"; CreateListItemWithDetails(listName, ...
0
votes
0answers
9 views

Is there a difference between the /Files endpoint and the /Children endpoint with the Sharepoint Rest API

I'm currently working out how to iterate through files on a sharepoint using rest. Ultimately I'll have to get all files from a folder, do stuff, and then upload to another folder. From what I can ...
0
votes
1answer
845 views

Trying to delete SharePoint folder using API

I'm following this https://docs.microsoft.com/en-us/sharepoint/dev/sp-add-ins/working-with-folders-and-files-with-rest to try and delete a folder in a SharePoint library. I'm writing a c# console app ...
0
votes
1answer
22 views

SharePoint Rest API to select Url from File Version

I have used the following URL: https://xyz.sharepoint.com/teams/Analytics/_api/web/GetFolderByServerRelativeUrl('/teams/Analytics/Shared%20Documents/DataMaster')/Files('Transaction.xlsx')/versions ...
0
votes
1answer
14 views

How to know if Lookup column is deferred or not using REST API

I'm trying to use the REST APi to get data from a sharepoint list. I first get the information about the columns: _api/Web/List<guid'some-id')/Fields. Then with this information I query the data ...
0
votes
1answer
2k views

Getting GUID of a document using REST

I can preview a document in sharepoint by hitting /sites/sitename/_layouts/15/WopiFrame2.aspx?sourcedoc={GUID}&action=view&wdSmallView=1 I know I can also get the preview by just placing the ...
0
votes
1answer
38 views

After file upload: modify properties

First: I am a noob and I use the REST API of SP server with Java, so no SDK involved here. I uploaded a file to a Document set. Now I have to modify the ContentType and some other custom fields (...
0
votes
1answer
927 views

REST query: $filter by AllProperties of _api/web/webs

Is there any way to query subsites via REST and include $filter for properties in SPWeb's property bag, like this: http://site.company.com/workspaces/_api/web/webs?$expand=AllProperties&$select=...
0
votes
1answer
914 views

Access Denied Error when calling REST Call for specific user

I have created a script to fetch data from the list in SharePoint Online. To do so, there has been given a REST call to the list to fetch data. There is one user who is facing the issue that is shown ...
2
votes
2answers
8k views

How to call the SharePoint rest API using Java web application?

I have developed one of the web based Java Application in which one of the page containing the form for uploading a files, as of now uploaded file stored on the Application server, but instead of this ...
1
vote
1answer
21 views

Remove user from site group using PnP-SP in JavaScript

I'm trying to find a way to remove a user from a group using PnP-SP. My code is as follows: this.$pnp.sp.web.siteGroups.getById(this.selectedGroup.Id).users .remove(user) ....
0
votes
1answer
1k views

How do I add a managed property for a column on a list when I do not see a crawled property to map to?

I'm working with SharePoint 2013 Enterprise. I've taken over the management of another SharePoint setup created by the person that had my job before me. I want to be able to query against the search ...
1
vote
1answer
889 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

Create navigation item using REST API with non-existing link in SharePoint Online

I've stumbled upon issue where I need to create a link in navigation from root site which points to site collections. POST Request URL: https://contoso.sharepoint.com/_api/web/navigation/...

1
2 3 4 5
32