Questions tagged [sharepoint-rest-api]

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

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

Update People picker column using REST API in Power Automate

How to update people picker column using REST API in Power Automate? I have three people picker column in SharePoint.
1
vote
0answers
7 views

Add Sharepoint Online list item using pure JavaScript

I am trying to do the following: I have a Wordpress site where I have created a form. On submit event I want to send the data to my Sharepoint Online list. The problem I am facing is the fact that the ...
0
votes
1answer
32 views

Retrieve SharePoint Online change log for entire tenant

I'm using GetChanges REST end point to retrieve SP change log: https://mytenant.sharepoint.com/_api/site/GetChanges with request body like below: { "query": { "Add": ...
1
vote
1answer
16 views

Creating English-UK sites via Sharepoint Rest API

I am trying to create a new SharePoint Site collection via the REST API and trying to have that site be created using the English - United Kingdom Language rather than English - United States I ...
1
vote
0answers
7 views

Unable to show progress bar using SharePoint REST API

I am trying use XMLHttpRequest to show a progress bar when uploading files to a SharePoint list via REST api. The same code works on this codepen even without the parser.php file. Just trying to show ...
0
votes
1answer
15 views

How to remove specific user from item level permission through Rest API using power automate

I have a list with each list item has unique permission. Now I need to remove specific user from the item level permission using Power Automate. I know there is REST endpoint for removing group but ...
0
votes
0answers
13 views

Search REST api permission scope for external application

I have a external application that needs to be able to make requests to the sharepoint search api. This application only needs to know about information from a single site collection. However, from ...
0
votes
0answers
31 views

Query string prohibited depending on the statement

The problem I have a List with loads of rows and I'm doing a workaround in Python to fetch them without exceding the list view threshold. So far I managed to do this by limiting the ID range of the ...
0
votes
1answer
29 views

How to do a http call POST action in SharePoint Designer 2013?

I am using SharePoint Designer Workflow 2013 and would like to use the SharePoint Rest API to update some list item. I know how to use the "Call HTTP request" action with GET method. But how ...
1
vote
1answer
21 views

Retrieving “CanvasContent1” in JSON format

I'm trying to build my knowledge of SharePoint Restful API so that we can ultimately script bulk updates to pages. Something I don't understand is why the "CanvasContent1" column is being ...
0
votes
2answers
36 views

Get ItemCount from Existing View

I have a Task list that I'm trying to query to get the total Active Tasks for the current user. There is a view already built that I would like to use. /_api/web/lists/getbytitle('Tasks')/views/...
0
votes
3answers
29 views

How to update a multiple lookup field in SharePoint Designer 2013 (REST API)

I would like to update a multiple lookup field in SharePoint Designer 2013. OOTB this is not possible. In SharePoint Designer 2010 it was possible. Now I would like to do this with for example a REST ...
0
votes
2answers
14 views

Use Rest API to return link from sharepoint list

I'm trying to use REST API in SharePoint to getlistitems to display the link from a hyperlink field from my sharepoint list. I AM successfully using the code to display the title field - but NOT the ...
2
votes
1answer
26 views

API Call to Document Library, how to get a subfolder's name?

I have been trying to make a call to a specific subfolder. Oddly if I call directly to: 'sites/website/RootFolder/Folders(\'subfoldername\')/Files It returns the subfolder items but it won't give me ...
0
votes
1answer
40 views

What scope/permissions do I need to get RoleAssignments via the rest api?

I am using rest API role assignment for SharePoint Online with Oauth2.0 to fetch advanced permissions. But, I cannot give Full Control Scope to my Application. Is there any other way where I can get ...
0
votes
1answer
15 views

Get outgoing email settings for current web application via REST or CSOM?

I am working on a SP2013 workflow custom code activity to allow sending an email with attachments, where the email attachments are the SharePoint attachments of the current list item. I got some proof-...
2
votes
1answer
22 views

How to find all selectable properties of a list item

If I run the query ..._api/web/lists/GetByTitle('Site Pages')/items, I get a list of properties, but it is not comprehensive. For example, FileRef is not visible in the resulting JSON, but can be ...
0
votes
1answer
28 views

SharePoint 2019 Server APIs

I am merging 2 legacy microsoft applications in modernization project. One is CMS site running on SharePoint 2013 and other is .NET 2.0 web application having transactional UI functionality. I am in ...
2
votes
1answer
24 views

How to navigate through XML response (SharePoint REST API)

I am using the SharePoint REST API to construct the endpoint URI as mentioned here Working with folders and files with REST I have a Microsoft SharePoint location which has a folder and the folder ...
0
votes
0answers
15 views

REST API to external list not working consistently

I have external content types, which are read operations (item/list) to SQL Server views. I've made external lists from them. There are hundreds of thousands of entries in the table, so I've increased ...
0
votes
0answers
13 views

SharePoint Framework PnP - How do I ensure my async method is completed in init() and super.onInit() promises

I have the below code.. How do I ensure my loadLookupLists() is completed before the onInit()/super.onInit() method returns @override public onInit(): Promise<void> { Log.info(...
0
votes
0answers
11 views

Connect Sharepoint Excel list to Django API

I am trying to build a solution where I have a SharePoint list in Excel format and I want to populate this list from the contents of a database that could be accessed through a Django Rest API. I also ...
0
votes
1answer
14 views

How to query calendar items from different calendar views?

I have two different calendar views: View Name is "All Events" .../Lists/CalendarName/AllItems.aspx View Name is "Current Events" .../Lists/CalendarName/MyItems.aspx I'm only able ...
0
votes
0answers
34 views

Getting Error while trying to upload a file on Sharepoint API

While I am trying to upload a file on SharePoint I am getting the below error message with 401 response code. With older SharePoint, we were able to upload the file but for the newly created Site, we ...
0
votes
0answers
11 views

API to get List field from SharePoint List to create a folder in a Shared Drive

We have a SharePoint 2019 on-premises instance. Currently we are using a workflow which will create a new folder in a Document Library within SharePoint and then files are copied into this folder. We ...
0
votes
1answer
58 views

How to replace an existing file in SharePoint Online using REST API

I am trying to upload a file using REST API as below: String.format("{0}/_api/web/getfolderbyserverrelativeurl('{1}')/files" +"/add(overwrite=true, url='{2}')",serverUrl, ...
0
votes
1answer
18 views

Upload Files >250MB via Sharepoint REST API

So I am trying to upload Files to a Sharepoint Site via the REST API. I am already using the /Files/Add() Path-Function, but that one is (from what I've found) per design locked to 250MB max and ...
0
votes
2answers
37 views

How to add records to a SharePoint list using Rest API / JSON and HTML

I have been doing a lot of research and reading and I am still having trouble understanding how to accomplish my goal. For reference I have been here reading: Get to know the SharePoint REST service I ...
0
votes
3answers
54 views

must I need to use C# and CSOM to conect to the Sharepoint rest web api?

I recently had a question and how to connect to the REST web api using c# and it gave a hard time trying to connect, documentation does not give any clue how to use the rest web api(code) but ...
0
votes
1answer
18 views

Dynamic REST Statements

Is there a way to dynamically create a REST call and specifically I am referring to the data: section of the call. If I get the terminology incorrect by all means keep me honest. I tried some things ...
0
votes
2answers
46 views

Trying to fetch items of Person or Group type column from another list in React Sharepoint?

I want to fetch items of Person or Group type column from another list in React SharePoint but there is a restriction I cannot use it in a single query. So far I have only known using REST. So if ...
0
votes
1answer
38 views

Item not fetching using lookup in React Sharepoint

I am trying to fetch items using lookup but seems like it I cannot expand the child people picker column like there is a restriction in which I can't use person field by expanding the child list. Here'...
0
votes
2answers
25 views

SharePoint REST API Get Choice Dropdown Index

I have a dropdown with 5 string values. I can use following request to get string values of the dropdown for every list item: https://someurl/sites/mysite/_api/web/lists/getbytitle('mylist')/items(...
0
votes
0answers
8 views

how to add value in document library look up column when button is clicked

function UpdateDocsDetails() { var def = jQuery.Deferred(); var itemPayload = ""; var restSource = _spPageContextInfo.webAbsoluteUrl + "/_api/Web/Lists/getByTitle('DMSDocs')/Items(...
0
votes
0answers
15 views

How can i use “Send an HTTP request to SharePoint” to only break inheritance for ONE folder and then add edit permission for just THAT folder.?

i have a subfolder within a folder and I have the path for a specific folder. Need to break inheritance for THAT folder and then add a person's email address with owner permissions for THAT folder. ...
0
votes
1answer
39 views

Trying to upload files to SharePoint list AngularJS and REST API

I have a SharePoint hosted html file with a form that I use to add a new list item to a SP list via the REST API. I am also reading data from the list using AngularJS for both reading and writing to ...
0
votes
0answers
13 views

Register Sharepoint search result click in a custom UI

We are fetching SharePoint search results using REST API and rendering those results in a custom UI. Since we are not using built in SharePoint Search UI, tracking user click of a result is not ...
1
vote
1answer
95 views

Deleting Folder/File via REST API

I am trying out the Sharepoint API, but I am having troubles deleting anything. GET Calls, Creating folders and uploading files works like a charm, but deleting stuff is giving me head aches. I tried ...
0
votes
0answers
28 views

Need help with creating Managed Meta data column on a library using Rest API

I'm trying to create document library in Sharepoint Online using Rest API in Power Automate. We need to create a Managed Metadata column in it. I referred to microsoft site and also google for it, but ...
0
votes
2answers
56 views

Using REST API to get list items from Sharepoint [site content] in React and displaying it in table format

I am trying below code to fetch list items from SharePoint and displaying in table format using REST API up to some point I have wrote the below code. I am unable to figure out how the items will be ...
0
votes
1answer
18 views

Options for migrating anonymous InfoPath 2010 form to SP 2016? Nintex? Aspx? JavaScript page?

I've been thrust into an architect role on SharePoint and have zero knowledge on how to best do this migration. We have old SP 2010 InfoPath forms that need to be rebuilt (since InfoPath is no longer ...
0
votes
1answer
63 views

Add or remove Folder RoleAssignments not valid error

Having trouble with adding or removing Role Assignments on SharePoint document folders using REST API through Power Automate. Process is to copy a Template folder with subfolders. Of which, 2 ...
1
vote
2answers
69 views

Add Role Assignment using Office 365 group

Is it possible to use an Office365 group as the principalid for the addroleassignment function in SharePoint REST? Trying to use Flow to copy a folder structure and then set permissions on some of the ...
0
votes
1answer
65 views

Auto-populate field value in NewForm.aspx based on another list using REST

I have two SharePoint 2016 lists: List-A and List-B. List-A has three columns: Employee (person/group) Supervisor (person/group) Contact (Font Awesome envelope icon) List-B has two columns: ...
0
votes
1answer
54 views

How do I access Sharepoint list data from a custom spfx webpart?

I'm trying to get all list items from a list on the same domain as the client-side spfx web-part. It's a pretty basic call via the REST API, however the information being returned doesn't match that ...
0
votes
1answer
21 views

Fetch SharePoint folder URL via REST [duplicate]

I have a document library with multiple level folder structure, I want to fetch the server relative URL of individual folder by their name. For example: Folder structure in lib like this: Document ...
0
votes
1answer
47 views

Sharepoint REST API - SP.Web.CreateAnonymousLink - Unable to CREATE Links

In short - the issue appears to be that I can access a folder or file's anonymous link - but only after it's been created. When I say created - I mean clicking the 'copy link' button as show in the ...
0
votes
2answers
35 views

how to get a pre-authenticated URL to a Sharepoint document?

I'm using the Sharepoint REST API server-side to browse through documents, that works. For authentication (having login credentials known server-side) I use node-sp-auth which provides me a FedAuth ...
0
votes
0answers
19 views

How can I triggerSharePoint Page scheduling when setting status and start date doesnt work?

I have written an Approval flow that uses Logic Apps with SharePoint REST to set approved items to "Scheduled" with a pending _PublishStartDate based on a specific date (or published right ...
0
votes
1answer
19 views

Power Automate Filter List items by person login name

We need to filter the list items by person login name (fully qualified i.e, i:0#.f|membership|xyz@abc.com), How we can achieve this using Power automate GetList Items method or through REST API, Any ...

1
2 3 4 5
29