Questions tagged [sharepoint-rest-api]

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

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

API upload limit via appenate, work around?

I'm looking for some clarification before I redo my work. I've been working to do some integration between a few of our tools. Mainly Appenate, Sharepoint and Teams. We use Appenate to create forms/...
0
votes
1answer
8 views

Sharepoint REST Upload Document returns Bad Request

I attempted to upload an image to sharepoint and reveived 400 bad request. I' ve traced it in fiddler and it returned next: Fiddler: {"error":{"code":"-1, Microsoft.SharePoint.Client....
0
votes
0answers
9 views

User permissions API in Sharepoint 2013 Workflow

For few API's like adding user to group and assigning role to user keeps returning Unauthorized. Have already tried the below steps: 1.Full control to Workflow in appinv.aspx(both with and without /...
0
votes
2answers
32 views

Upload multiple attachments

My requirements are for user to complete a bootstrap form, attach files, and on submit, create new list item and upload the attachments. CREATE NEW LIST ITEM Below code works on adding a new list ...
0
votes
1answer
21 views

How to update Modified By field using REST API

I want to update a task to approved using REST API and C#, I am able to approve the task successfully but since its a C# solution deployed on IIS, it gets updated to System Account. I am trying to ...
0
votes
0answers
22 views

Trouble using the Send an HTTP request to SharePoint connector in Flow/PowerAutomate = Invalid slug header for BLOBs

I’m getting the dreaded "Invalid slug header for BLOBs" error message "message": "Invalid slug header for BLOBs. Slug headers must be server- or web-relative URL of the file. Server-relative URLs ...
0
votes
0answers
9 views

Retrieving Recurring Data

I am trying to retrieving recurring data from a SharePoint 2016 calendar. After about a month I realized that recurring data isn't being retrieved. Any ideas how I can accomplish this? I am using ...
0
votes
0answers
12 views

SharePoint Designer 2013 Workflow - Call HTTP Web Service to create file

Is it possible to use the Call HTTP Web Service action to create a simple file in a library in SharePoint Designer Workflow? The REST API I am using is https://yoursitehere/_api/web/...
0
votes
0answers
17 views

Rest API Excel Services error forbidden

We have created a SPD workflow with below details: URL: **/_vti_bin/ExcelRest.aspx/Shared%20Documents/test.xlsx/odata/Table1 Headers: Accept: "application/json;odata=verbose" Result: d/result(0)/...
0
votes
1answer
21 views

How to add values to item once user completes form. They are coming across blank in my api POST

My Sharepoint page is Posting data via an api Post. The issue is that two fields are inserting as empty text instead of as the values entered by the user. Here's how the form is supposed to work. I ...
2
votes
1answer
14 views

SharePoint Online REST API - Read Group Members

I am developing a system that allows me to keep a track of SharePoint group membership and I am using the SharePoint REST API to do this. Using this link (https://medium.com/@anoopt/accessing-...
0
votes
1answer
16 views

400 Bad request when filtering data using the autogenerated ID column

Been hitting my head and have no idea what I am doing wrong. I have couple columns in a list and I want to update the Column field by choosing the ID field. Below is the URL that I generate but throws ...
0
votes
0answers
30 views

REST API not finding Item just created

I have a list that if certain conditions are met will create 1 item each in 2 separate lists in a different SharePoint site collection. I have enabled the 'recursive workflow' successfully in a ...
2
votes
0answers
19 views

Get Quick Launch by REST call ignoring hidden links

Sharepoint 2019 on-premise. I'm trying to get a quick launch menu using this query: /site/_api/web/Navigation/QuickLaunch?$expand=children It returns all menu items from the Site Settings > ...
1
vote
2answers
36 views

Delete sharepoint files older than 60 day using Rest api from powershell

I am working on a powershell script to delete files in a specific folder in SharePoint 2013. We do not have SharePoint online so the operation must be done with Rest API and from powershell. Can ...
2
votes
0answers
23 views

REST API - How to check whether a user's email id is currently active?

How can I find a user who has access to my SharePoint site is active? Sometimes, a user may delete his/her email id. I want to find out a user who uses my SharePoint Site is still active and doesn't ...
1
vote
0answers
25 views

REST API - Retrieve all the resources a user have an access to

How can I get a list of all resources, a user has access to using REST API? Because sometimes a user can have limited access to just a few files and document library in a SharePoint Site. So, I want ...
1
vote
0answers
27 views

Sharepoint API filter result

When using following request: [...]/_api/web/Lists/getByTitle('SVC')/items?$select=FileRef,File_x0020_Type&$top=5000 I get the top 5000 items in the result. However when adding following filter ...
0
votes
1answer
15 views

How to skip a failed api lookup and pass null parameters instead?

If the "Title" parameter isn't passed via the url, then my initial api call fails, but even failure, I need it continue to the my item save routine. Unfortunately, an error is thrown on ...
2
votes
0answers
28 views

How to update approval comments of a SharePoint task list

I am trying to perform an approval using REST API in SharePoint 2013. I am able to successfully Approve/ Reject but unable to read or save approval comments. I couldn't figure out what is the column ...
1
vote
1answer
22 views

Search API exclude null Birthday records in SharePoint Online

I am building a birthday webpart. I am using search api to get the user details as below: var birthday = 'RefinableDate00'; fetch(this.props.SPUrl + "/_api/search/query?querytext=%27*%27&...
0
votes
1answer
21 views

How to do an if/then in to handle if a Parameter isn't being passed to the api

I have a SharePoint 2016 page that expects a parameter and dynamically builds the url for the API call based on that parameter. But, I'm struggling with what/how to do an if/then in my ajax to handle ...
1
vote
1answer
31 views

Sharepoint 2013 REST API issue - Value does not fall within the expected range

I am trying to update a Tasks list item via REST and sending the following body to SharePoint API via POSTMAN tool: { "__metadata": { "type": "SP.Data.TasksListItem" }, "Status": "...
2
votes
0answers
25 views

SharePoint Search REST API: what does IsMissingUnifiedGroups mean?

When using the SharePoint search REST API, we see: "Properties": [ ...omitted, { "Key": "IsMissingUnifiedGroups", "Value": "true", "ValueType": "...
1
vote
0answers
25 views

Client Peoplepicker not saving data to a list

we are using Client peoplepicker in our SP custom form. Below is the code for that. function getUserInfo(peoplePickerElementId) { try{ var toSpanKey = ...
0
votes
1answer
14 views

Adding object values to the correct SharePoint list columns---getting blank SharePoint rows

I'm parsing an Excel file and it's coming back as an array object. I want to add each object value into the correct SharePoint list column. I'm using POST to upload to info and the data is going ...
0
votes
1answer
26 views

How to find the corresponding Id for parameter passed into a new page for saving via Sharepoint api

Overnight, with the help of this forum, I figured out how to save a parameter passed via a query string to my Sharepoint api call for "Name" field. I'd like to take this one step further, and ...
1
vote
2answers
30 views

SharePoint REST API - Discussion Message ThreadIndex Field

I am trying to access the field 'ThreadIndex' using the SharePoint REST API. When I try to include it in the select query option, I am getting a bad request response code. Here is the URL I am ...
1
vote
2answers
44 views

Problem creating folders in sharepoint online using REST API & C# using access token approach

I was trying to test creating folder under root folder in sharepoint online using access token and REST API using HTTPWebRequest classes from console application. I don't want to use any sharepoint ...
0
votes
2answers
25 views

SharePoint keeps on asking credentials in pop up

We have created one SharePoint List custom form having Rest API and when users having Contribute access are trying to submit the form, they are getting pop up asking for credentials again and again. ...
0
votes
1answer
22 views

How to check using Rest API Code, that the email has been delivered using flow?

''' An Email is being send using Power Automate, now to update the status of a column in SharePoint list, how to track the email has been delivered or not? '''
1
vote
1answer
19 views

How to convert binary image data retrieved through REST /$value to be used in docx.js?

I'm trying to pull an image from a SharePoint library using REST, construct a Word document using docx.js, insert the image, then save that document back to another SharePoint library. I have code ...
0
votes
1answer
22 views

How can i find the Excel services URL for my file?

I'm trying to access through the Excel Rest API an excel file "My Excel File.xlsx", but regardless how I what excel services URL I use, I either get 404 or file does not exist or is deleted. This is ...
0
votes
0answers
20 views

sending email through rest api sharepoint - quick question

we need to send out the email from sharepoint rest api to the shared email boxes, we have tested out its is sending email but the weird thing is in the [TO] section of the email,we are not able to ...
1
vote
0answers
24 views

Getting error while uploading large file in sharepoint Online with REST API(Client side)

I am using HTML/Jquery form to upload files to upload file in sharepoint but if filesize is big(100MB+) then chrome browser is crashed (chrome Aw, Snap!" something went wrong) No error ...
1
vote
2answers
37 views

How to Upload Large Files onto SharePoint using REST API and JQuery

I'm developing a web application built on top of SharePoint 2013 using HTML, JavaScript and JQuery but I'm having trouble trying to figure out how I can upload large files onto a SharePoint Document ...
1
vote
1answer
34 views

Is it possible to use a SharePoint login session from JavaScript?

I would like to make an HTTP GET Request using the SharePoint REST API and I would also like to invoke the API based on the fact that my browser is already logged in, so I do not need to explicitly ...
1
vote
1answer
38 views

Get comments of previous versions checked in in SharePoint Online using Rest API

I am trying to retrieve comments from my previous check in's in a library file in SharePoint Online. In SharePoint Online I can see the Check in comments successfully present in all the file versions ...
0
votes
1answer
60 views

How to check in file when file auto-uploaded to SharePoint Folder

We have an automated job written in Python that uploads one file to a SharePoint location every day. The problem is that this job leaves the uploaded file in a "Checked Out" status. How can I ensure ...
0
votes
0answers
27 views

SharePoint Hosted Add In REST API works only with Farm Account

I have a requirement to get SharePoint list items having access to current user in SharePoint Hosted Add In. As the project was developed using CSOM (C#) through WEB API and the API was hosted in ...
0
votes
0answers
31 views

unable to check if a user is in SharePoint group or not

I am checking whether a user is there in a particular SharePoint group or not. i have shared the site with "Everyone" and "NTAUTHORITY\authenticated users". Below is the code i am using to check. ...
0
votes
0answers
11 views

Creating Work Object in Timesheet using Project Server 2013 REST API

I am trying to make work object in certain time-sheet using POST method to this REST API endpoint: /TimeSheetPeriods('periodid')/TimeSheet/Lines('lineid')/Work/add(parameters) based on this ...
0
votes
0answers
25 views

Add/Update User field in ??.sharepoint.com

This issue only manifests on SharePoint online site. I am able to do adds and updates to the list without issue until trying to update the user type Employee. Previously, for my on-prem customers I ...
3
votes
0answers
45 views

Microsoft Graph Call API Error - Application is not registered in our store

I am using Postman to run Microsoft Graph REST API for making outbound call similar to yours. I have followed steps as suggested in https://docs.microsoft.com/en-us/graph/auth-v2-service but still ...
1
vote
1answer
23 views

How to create a SharePoint content type with 'Document' as the parent

I am trying to use SharePoint REST to create a content type. I intended the content type to use the 'Document' as its parent (0x0101). But every time I tried the code, it creates a content type with '...
0
votes
1answer
48 views

REST API Prompting for user credentials

I am attempting to traverse up the site hierarchy tree using the Rest API in SharePoint with SPFx in order to create "legacy-style" breadcrumbs. I am basing my component on the code found here. If ...
0
votes
1answer
8 views

SharePoint Rest API - Get exact dates as being shown in SharePoint list irrespective of current user's timezone

I have a SharePoint list with custom forms, where the items are created from users in various timezones. The dates are getting saved correctly in the SharePoint list, but when the item is viewed ...
0
votes
1answer
13 views

REST API search query Obtain results

I have data from a result of a query Data [0] Cells [0]: {key: "name" value:"abc"} [1]: {key: "sex" value:"f"} // this cell has a long list of array How to get the value if the key is ...
0
votes
2answers
29 views

Sharepoint 365 Rest Api cannot see any document or element

I'm using Sharepoint online (included in office 365) I'd like to use sharepoint as a document repository. I've created some test folders&Docs on my created test site: I have created my auth ...
2
votes
1answer
31 views

Will SharePoint automatically create intermediary folders when adding a file through the REST API?

I have read this question and answer, but the REST call in that question is attempting to grab a folder by GetFolderByServerRelativeUrl and then add a file directly to it, so clearly if the folder is ...

1
2 3 4 5
24