Questions tagged [api]

The tag has no usage guidance.

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 ...
2
votes
1answer
58 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
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
1answer
430 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
1answer
883 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 ...
1
vote
1answer
110 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
1answer
103 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
1answer
131 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
1answer
430 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
260 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
1answer
108 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 ...
0
votes
1answer
17 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
1answer
23 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
1answer
40 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
44 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
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 ...
0
votes
1answer
11 views

How do I make Cross Site Scripting from External Content work

Currently using SP2013 on-prem and need to pull information from and in house application and display it on a page. Not using an iframe how can I pull specific information from a database and feed it ...
0
votes
1answer
162 views

jQuery and REST API to list all subsites and users in those subsites with full control

I'm looking to display on a web part in SharePoint online a list of all sub-sites and all users with full control to that particular site i.e. Team Site Site Owners https://ab/...
0
votes
1answer
17 views

From all Documents in a folder in SharePoint,get only documents related to particular user

From All Documents in a Folder in SharePoint,get only documents related to particular user using API. I have a generic account which has access to all the documents in the folder and by using API call ...
0
votes
1answer
161 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
2k views

Fetch User Details from Person Or Group Field Using REST API

I was trying to retrieve user WorkPhone from a people and group field but its throwing error saying The query to field 'Application/WorkPhone' is not valid. But I tried the same query for the ...
0
votes
1answer
23 views

Custom List Accordian Narrative editable

I am looking to enable the Narrative porition of this code to be editable. <!-- Style --> <style type="text/css"> .item-title-clickable{ font-size:1.1em; background-color: #c7e0f4;...
0
votes
1answer
229 views

fetching fields using Sharepoint search Api

I have a content type called News Item Below is my Search Api query http://spsite/sites/Intranet/_api/search/query?querytext='ContentType:News*'&selectproperties='Title,IsPromoted' I am trying ...
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
333 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
0answers
526 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
0answers
551 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
0answers
54 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
359 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 = ...
1
vote
0answers
212 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
0answers
48 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
81 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
53 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
72 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
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
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
0answers
140 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
0answers
421 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
16 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
0answers
21 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
47 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
32 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
0answers
45 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
0answers
34 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
76 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 ...