Questions tagged [api]

The tag has no usage guidance.

77 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
13
votes
2answers
4k views

Getting data from SharePoint Online with an App, service to service

I have registered an App in my SharePoint Online, and I can use it's ID and secret with the Office Dev PnP PowerShell library. Works like a charm. Now the issue is that we are trying to connect to the ...
10
votes
1answer
3k views

The remote server returned an error: (403) Forbidden when accessing office365 site through external APIs

We have built a desktop app that import/exports SharePoint lists into/from Office 365 sites. The app works perfectly, and we were able to do the import/export of Office 365 site pages for many clients ...
3
votes
0answers
41 views

Reaching subsites of SharePoint domain

I am writing an application that scrapes all the files from a given SharePoint site and all of its sub-sites. This worked perfectly when I ran it locally however, now that it's running on a server ...
3
votes
0answers
334 views

Update metadata w/2013 REST API in a Workflow

I am looking for an example of a REST PUT/MERGE method done from a workflow (no code) in SharePoint Designer to update a metadata field in a library. Specifically what the Build Dictionary and Call ...
2
votes
1answer
59 views

SharePoint 2013 REST API filters

As part of our requirement, i created one BCS connection which retrieves data from a SQL stored procedure which acceppts two input paramaters. I was able to create a external list out of it. But when ...
2
votes
0answers
544 views

Access-Control-Allow-Origin' not allowed access SharePoint Ajax call cross domain

I am trying to access cross domain service using ajax call in sharepoint. getting below error Failed to "Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-...
2
votes
1answer
2k views

Sharepoint REST api search for a querytext in a site

I am having issue while searching using query text in a specific site. When I use following get query, https://client.sharepoint.com/_api/search/query?querytext='vpn', I get results in the entire ...
2
votes
0answers
593 views

is on-premise Sharepoint 2016 REST API possible with oauth?

I have a Sharepoint 2016 server and a python web server. I would like to read data from Sharepoint with my python server. I was able to do this on Office 365 on the cloud but did not find much ...
2
votes
0answers
34 views

Unable to get all worksheets ranges with REST API

Maybe I am doing something wrong or I didn't get the way to get my data. I tried to call: curl -k --ntlm --user user:pwd https://sharepoint.server/dept/_vti_bin/ExcelRest.aspx/Department/mydoc/...
2
votes
1answer
456 views

How to get SharePoint survey graphical view results using API call?

I have create the survey list in SharePoint 2013.i have added some questions in it.i need to get the graphical response view using API call or programmatically. I need to display my own view in ...
2
votes
0answers
55 views

Add .aspx file via REST

I'm able to add a .txt file to my Sharepoint library by posting to this URL: https://my_subdomain.sharepoint.com/sites/my_path/_api/web/GetFolderByServerRelativeUrl('/sites/my_path/Pages')/Files/add(...
2
votes
0answers
369 views

SharePoint Online : Using REST API for getting list items return null

I am trying to create a Sharepoint hosted add-ins to get data list items. My code are below var hostweburl; var appweburl; //The SharePoint site where the App is installed hostweburl = ...
2
votes
2answers
658 views

Upload files with REST or alternatives

I need some help with Server to Server upload. (not from the browser) Has anyone uploaded files to sharepoint 2013, using REST, or other methods from a server (java/coldfusion/other). I am getting a ...
2
votes
1answer
911 views

Using html2Canvas API to generate images of custom aspx pages

So I have an html table I'd like to convert to an image and I found a pretty neat API to do exactly this. It's called html2canvas. I have been able to use it pretty easily using HTML pages in my ...
2
votes
2answers
3k views

Create an item with REST API from workflow - SharePoint 2013

The main idea of this is to create an item from workflow in another list which is located on different site collection. So I thought is it possible to create an item in list with REST API through the ...
1
vote
0answers
25 views

SP.Utilities.Utility.SendEmail Anonymous User

I have a public website made with on premise sharepoint. Can I use rest api (SP.Utilities.Utility.SendEmail) to send email with anonymous user? I am trying but didn't work.
1
vote
0answers
303 views

How to use external API in sharepoint online or in SPFX?

I am trying to integrate the Microsoft Translator Text API to a SharePoint online site, and the method that I am using is with sharepoint framework webpart. but when I press the button to do the API ...
1
vote
1answer
176 views

Rest queries on ProjectOnline should use _API/ProjectData or _API/ProjectServer?

I've been trying to identify what is the correct way to get data from Project Online for some time now (I just want to get data, not update it). I can find documentation on ProjectData and a lot of ...
1
vote
2answers
287 views

Sharepoint REST API: Get filtered results of files in a document library subfolder and sub-subfolders

Let’s say I have a Document Library “Documents” with structured folders like this: - Folder1(ID1) - SubfolderA(ID3) file-1-in-SubFolderA(ID4).txt file-2-in-SubFolderA(ID5)...
1
vote
0answers
61 views

How do I monitor SharePoint Online API usage?

Our company stores projects in Office 365 SharePoint Online, creating one site per project utilizing site templates. We then use SharePoint Workflows, PowerBI, Microsoft Flow, PowerApps, and custom C#...
1
vote
0answers
88 views

REST API - Filter Available Fields Choice Results?

We have a very large choice (nearly 20,000 options!!!) field that we want to be able to retrieve the choices, and preferably filter them on the server side. This is the call to get the options _api/...
1
vote
0answers
56 views

SharePoint change author

Is it possible to change the Author of a discussion list using the API in SharePoint 2016? I am trying to update a discussion list author with the user ID19. This is what the curl request would look ...
1
vote
0answers
87 views

Uploading PDFs via the SharePoint Graph API without using Binary?

I am able to upload to the SharePoint Graph API via client-side JavaScript when I send the data in binary. However, I need to send PDF files via a server-side connection and when I do this the data ...
1
vote
1answer
109 views

Get all list's values using REST API - ERROR

I'm trying to get all values from a list and print it to screen. I have a column named 'tz' and I want to print it only. I use this code, but I am getting an error: Unable to get property '0' of ...
1
vote
0answers
34 views

Which API to use for my application to SharePoint online?

I am new to SharePoint, need some guide on the choosing the API. I being read a lot of info last few days by its still very confusion to me. https://dev.office.com/sharepoint/docs/general-development/...
1
vote
0answers
74 views

SP Hosted-AddIn - Pass body parameter to SP.WebRequestInfo() object

I want to pass body parameters to my post request, how to do this? In msdn article haves only example with GET request.. This is my code for get request(Its working): function webProxy() { ...
1
vote
1answer
136 views

SP2010 API: How to insert data into list with folders

I have used SPServices for a long time, both creating, deleting and getting list items from my sharepoint sites. Now I got a new site, and in this site the previous developer has created lists with ...
1
vote
1answer
24 views

How to access a Sharepoint's API on LogicApps?

I'm trying to connect to Sharepoint's API. So when I create an account on CRM I need , with LogicApps, access a sharepoint site and create a Group. When i am testing the api access on Postman I have ...
1
vote
0answers
164 views

SharePoint 2016 compatibility

Does anyone know the link to API or document for API in SharePoint 2016? We are currently using '.Net client API' for SharePoint 2013 and want to check if the methods used from it will still be ...
1
vote
2answers
637 views

How to create a Request Http “GET” to url

I want to make a request http Webservice API to https://sms.vietguys.biz/api/u=[user]&pwd=[password]&from=[Title]&phone=[phonenumber]&sms=[ContentSMS] using javascript. Can I do ...
1
vote
1answer
458 views

REST - Get expanded property data for use in angular

I am trying to figure out how to get the expanded property data and be able to use that data in my angular code. REST call to get expanded property Data: /_api/Web/GetFolderByServerRelativeUrl('...
1
vote
1answer
266 views

Create File using SharePoint REST API call But It couldn't edit or view

url: http://site url/_api/web/GetFolderByServerRelativeUrl('/Document')/Files/add(url='abc.docx',overwrite=true), method: POST, body: "This is my doc", Headers: Authorization: "Bearer " + ...
1
vote
0answers
144 views

Access Denied when trying to create an item with SharePoint API

I am using OAuth to authenticate a client to access SharePoint and create some files. I have the access token and can access endpoints with no issues. However, when it comes to creating items, I am ...
1
vote
1answer
109 views

what is different between office 365 SharePoint and SharePoint on-premise? (using API)

I want to develop application that can access SharePoint on-premise server and download files from that server. I already developed JAVA application using REST API of Office 365 SharePoint. so what ...
1
vote
2answers
1k views

Is there any way to overcome URL length limitation in REST API “GET” Requests?

Is there any way to overcome the 2083 characters limit using REST API GET request itself.
1
vote
0answers
426 views

Adding documents into a Document Set folder in SPO by busing Javascript

I am working on a project where I have to build the logic to upload documents into document set folders and I am stuck building the end point. Can we work with document sets in the same way we do it ...
1
vote
0answers
18 views

Prevent SharePoint from sending emails when changing elements via API

I'm about to remove attachments in around 10k list items via SOAP API, how do I prevent email notifications about this?
1
vote
0answers
82 views

Connecting outside database via WEB API's to SPO

Has anyone been able to automate a connection to an outside source that uses WEB API's? We use Deltek Vision in the cloud, and would like to be able to automate some information to carry over from ...
0
votes
0answers
19 views

How to get the content of a specific document version

I am trying to retrieve the content of a specific version with Sharepoint API. I can get metadata like this : { "d": { "results": [ { "__metadata": { "id": "...
0
votes
1answer
23 views

how to know in which folder my file is

How can i Know, using my item metadatas, the folder it is stored in? For example, I do this Get Request : https://sharepoint.com/sites/SPSample/_api/web/lists/GetByTitle('Documents')/items(2)/...
0
votes
0answers
25 views

Get a specific version of a file/document SP 2013

I am currently working on a SP project using JAVA and Rest calls, I have to get a specific version of a file. For example, my file is named Document and is 4.2 version. On the site, I can see the ...
0
votes
0answers
114 views

Microsoft Graph/Sharepoint API search

The Graph API isn't well documented about a few things, and so I was wondering if anyone had some insight, or direct answers to the following problem: Background I am attempting to create a RESTful ...
0
votes
0answers
38 views

Jquery Datatable Grouping 2 levels (Group and SubGroup)

I'm trying to group datatables using SharePoint List RESTAPI and I get to accomplish level grouping and I want to group level two as subgroup. Please let me know if that's possible. The picture below ...
0
votes
1answer
29 views

Azure Sharepoint Application API Key generation

Introduction I'm not a Sharepoint developer. I'm attempting to build an API from a php application to talk to the file storage within a Sharepoint site. From what I can The RESTful API makes the most ...
0
votes
0answers
70 views

How to use RowsPerPage in the REST API

Whenever I send a request with RowsPerPage set, either via GET or POST, more rows than the RowsPerPage value are returned. RowLimit works though. /_api/search/query?querytext='sharepoint'&...
0
votes
1answer
65 views

Index all the rights

I have been trying to see the rights on folders within a sharepoint list. I haven't been able to do so with Powershell. Is there a way to do it with Python? I need all the rights on all folders. So ...
0
votes
1answer
64 views

Search SiteGroups API not working when case sensitive

I'm using the API to search for sitegroups as below: "/_api/web/SiteGroups?$orderby 'Title'&$select=Id,Title,LoginName" + skiptop + "&$filter=startswith(Title,'" + value + "')" However, I ...
0
votes
0answers
35 views

SharePoint how to upload file using javascript

I just want to use SharePoint to upload files to it and downloading from it without getting into any add-in or whatsoever business(just for storage). But to test JavaScript code from the official ...
0
votes
0answers
90 views

401 - Unauthorized: Access is denied due to invalid credentials

I have a simple mvc api which saves a url to SQL and retrieves it. For some people it works just fine, but some of them do not have access. Error: {"readyState":4,"responseText":" Server Error ...
0
votes
1answer
40 views

How to Authenticate Sharepoint User in Public Restful Service

we going to create a web application on sharepoint online with app parts. One of the app part will call the public restful service to get payroll information from SAP(ERP). We have created a web ...