Questions tagged [api]

Application Programming Interface (API) is a set of functions and procedures allowing the creation of applications that access the features or data of an operating system, application, or other service. When used as a question tag, please be sure to describe in your question which APIs are being used.

Filter by
Sorted by
Tagged with
2 votes
0 answers
219 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#...
Henry's user avatar
  • 21
0 votes
1 answer
22 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 ...
Tod Dominic's user avatar
0 votes
2 answers
2k views

Remove all files using REST

Is there a way I could remove all files from given folder using SharePoint REST api?
Krzysztof Majewski's user avatar
2 votes
2 answers
10k views

SharePoint REST API Document Library - filter by folder name

I'm running a JavaScript script that updates permissions on folders in lists and document libraries. To do this I need to get the ID of the item I want to update. The folders all have unique names ...
Luke D's user avatar
  • 23
0 votes
1 answer
1k 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 ...
Chris Crawshaw's user avatar
1 vote
0 answers
157 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/...
bla9x's user avatar
  • 171
0 votes
1 answer
3k views

SPFx Web Part - No 'Access-Control-Allow-Origin' header is present on the requested resource.

When attempting to access an Azure AD secured web API from a SharePoint framework web part, I get the following error: Response to preflight request doesn't pass access control check: No 'Access-...
Tracy's user avatar
  • 667
0 votes
1 answer
21 views

API field setup requirements?

I have a custom list and would like to reference the information in a SPFX web part. I'm following the sharepoint-crud sample from github as an example. When I make the call to the desired list with ...
vanblart's user avatar
  • 677
2 votes
0 answers
897 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-...
Sachin Pandey's user avatar
1 vote
1 answer
619 views

Edit content in Wiki page using script

I have a Wiki Page in SharePoint . which i want to be populated by Build results from another server using an Automatic script , but after digging through forums and google im unable to find a good ...
Yonnatan Bar's user avatar
4 votes
1 answer
6k views

How to do Microsoft Graph API Filter on Lookup Column in SharePoint List Items?

I am tried to apply Filter on Lookup column using Microsoft graph API filter. But it didn't filter. I have used below api to filter. https://graph.microsoft.com/v1.0/sites/{sites}/lists/{listname}/...
Bharat Khunti's user avatar
0 votes
1 answer
147 views

SharePoint access via API

I have just started with a SharePoint and I am not able to do a simple thing. I have over 12k files on SharePoint and I want to write a desktop app using C#, which schows me all files with names, ...
FromSomewhere's user avatar
0 votes
1 answer
3k 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 ...
Amish raj's user avatar
1 vote
1 answer
49 views

grouping the returned data using REST API

can i use grouping to eliminate duplication on the returned values using REST API ?or is there any other way the remove\delete duplicated values using REST?
A.Saéed's user avatar
  • 1,647
4 votes
1 answer
804 views

Why do people prefer to use List Item Collection Enumeratror over the get_data method?

I wonder if anyone compared the two methods of handling ListItemCollection data in javascript: var enumerator = collection.getEnumerator(); while(enumerator.moveNext()) {var current = enumerator....
Alexey Krasheninnikov's user avatar
1 vote
0 answers
96 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 ...
jakefullbright's user avatar
0 votes
2 answers
61 views

SharePoint: No Trials?

I was speaking to a someone when I had questions about developing SharePoint integration for the product the company I work for, and got a quote for nearly $800. The company isn't using the SharePoint ...
Quite Confused's user avatar
2 votes
1 answer
7k 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 ...
user72980's user avatar
0 votes
1 answer
30 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;...
user72766's user avatar
2 votes
0 answers
948 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 ...
kimchirichie's user avatar
0 votes
1 answer
413 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 ...
Vignesh Subramanian's user avatar
0 votes
1 answer
179 views

Is it possible to have the user's name included in responses from the Yammer messages API?

When making requests to the Yammer API and returning messages from a feed, the only information about the poster is their ID. Is it possible to have other information about the user included as well? ...
plotslow's user avatar
0 votes
1 answer
2k views

Use REST API to like or rate a SharePoint List Item

i would like to rate items via rest API. and i would like get user specific ratings. so if the user rated an item with 5 stars i want to see 5 stars somewhere in XML from rest API. By default i ...
cornerstone-programming's user avatar
3 votes
1 answer
138 views

Create new item in sharepoint when a new record is created in salesforce

Newbie here to both Sharepoint and Salesforce. I have a customer that needs to get data automatically put into Sharepoint when a new order is created in Salesforce. Does anyone have an example of how ...
Salome's user avatar
  • 31
2 votes
2 answers
195 views

Create SharePoint App that pulls data from multiple sites that are in different Site Collections

I'm working on a project at work where I am automating a process done in SharePoint 2013 that's currently done manually. The process involves uploading documents, applying properties of those ...
bucha_io's user avatar
0 votes
1 answer
712 views

How to access REST call data outside of call function?

I'm learning SP and how to perform operations via REST. I am unable to access the data returned by my REST call outside of the ajax call. Essentially, I want to make a REST call to get data and then ...
loady toad's user avatar
1 vote
0 answers
278 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 ...
KN Smith's user avatar
0 votes
1 answer
40 views

Document library api data for a concrete view

Can I get the data (folders and files) from a Concrete View? For example: /sites/testSite/test/_api/web/lists/getByTitle('Document%20Library')/items
kolek's user avatar
  • 261
2 votes
1 answer
341 views

Is it possible to set a Person or Group field through the REST API when the user is not listed on /sites/mysite/_api/web/siteusers?

My goal is to set a Person or Group field value on a new record to a user who may not have logged into the subsite "mysite" (and does not exist at endpoint #2 below), but who does exist at root ...
cloudyrobert's user avatar
0 votes
1 answer
30 views

Client Object Model Question

I am working on a SharePoint site, and I want to parse the owner of the site from the API. I am currently using the following code: var credentials = new SharePointOnlineCredentials(userName, ...
Chlei's user avatar
  • 1
2 votes
0 answers
46 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/...
user2360915's user avatar
0 votes
2 answers
2k views

SharePoint 2013 REST API - Using jQuery Append specific SharePoint list item to specific HTML ID

I'm scratching my head with this and getting nowhere fast. It's probably something really simple that I'm missing. I'm using the SharePoint 2013 REST API to request the top 4 list items that match my ...
Ian's user avatar
  • 75
2 votes
1 answer
2k views

Limit and filter List

I have a list with more then 100 rows, so I added limit to the url. I have two questions: How can I set it to not limit with no write a specific number (like 1000)? How can I add a filter to the ...
Uriel's user avatar
  • 21
2 votes
1 answer
441 views

Sharepoint Online 2016 - Send Email to External Users API

I need to know if there is a way, or if there is going to be a way, that its possible to send emails to external users from a Sharepoint 2016 Add-in. I have found quite a few posts saying this was ...
Greg J's user avatar
  • 53
2 votes
2 answers
128 views

Web API Content into a SharePoint list

Is it possible to post data retrieved via a Web API into a SharePoint list? my scenario is that I want to pull some data from a third product via its WEB API and post it if possible into a SharePoint ...
Steven D Andrews's user avatar
1 vote
1 answer
230 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 ...
uRIELk's user avatar
  • 61
1 vote
1 answer
3k views

How to get more than one SharePoint list using REST API?

I have created multiple lists in SharePoint 2013. I need to get the multiple list items using REST API call. I have tried the method to get the multiple list items using API within the for loop but ...
PGP's user avatar
  • 1,115
1 vote
0 answers
43 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/...
YHTAN's user avatar
  • 223
3 votes
2 answers
2k views

sharepoint get list fields including dropdown options

I am trying to get the dropdown fields within a sharepoint list via the _api. See Image below: https://one365dev1.sharepoint.com/sites/nieuwsportaal/_api/web/lists/getByTitle('Nieuwsberichten')/...
Rodney Wormsbecher's user avatar
1 vote
1 answer
249 views

Consuming soap api in sharepoint

I am getting data in xml formal by hitting the below url in browser. https://test.oracleoutsourcing.com/api/widget/test/GetESSDataOP?userId=302 I wanted to know how would I be able to read this data ...
KumarV's user avatar
  • 2,660
0 votes
2 answers
32 views

When using API request in SharePoint Online I get date et not list names

When I use _api/lists in order to get lists of my SharePoint, I get list of date like this. mercredi 3 mai 2017 10:14 mercredi 3 mai 2017 10:14 mercredi 3 mai 2017 10:14 mercredi 3 mai 2017 10:14 ...
hamza's user avatar
  • 1
16 votes
3 answers
14k 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 ...
David Lozzi's user avatar
  • 7,372
4 votes
1 answer
7k views

Download sharepoint document with REST as binary file not working for me

First of all, i am using node.js with provider hosted app with elevated rights to do this, no front-end at all. I just want to download a file using the API and then save it. I can't save if the API ...
Mikel's user avatar
  • 343
2 votes
1 answer
701 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 ...
PGP's user avatar
  • 1,115
0 votes
1 answer
8k views

Calling external secure rest APIs from a Sharepoint form

I am very new to Sharepoint and normally code using JS and Angular. I would like to create a form that is hosted in SharePoint. The form will collect some simple data (name and a few other fields) ...
Jeffet99's user avatar
1 vote
2 answers
5k views

Sharepoint REST API - Create a List using Javascript

I'm trying to create a list using REST API, the javascript is in a Sharepoint Page, I'm logged as a System Account and every time I run the script I get the following error: {"error":{"code":"-1, ...
Flamengo's user avatar
1 vote
0 answers
100 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() { ...
Goshky's user avatar
  • 2,058
0 votes
1 answer
1k views

How to merge and bind the results of two different "listdata.svc" calls to a jquery Datatable (datatable.js)

I have to query two different document libraries with some metadata columns and show the results in single grid. Both the document libraries have identical columns. I am using Datatable.js for ...
Amit Tyagi's user avatar
0 votes
1 answer
64 views

Pull metadata about all documents in all subsites

ok so what im looking for is to get metadata about every single document from a site down including all subsites. I'm new to sharepoint and am finding it rather confusing. I have found several ...
ProperPenguin's user avatar
1 vote
1 answer
343 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 ...
Anders Gerner's user avatar