Questions tagged [api]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
1answer
1k 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 ...
1
vote
1answer
2k views

Problem with workflow REST

I seem to be having a problem making a rest call to create a list or add a user to a SharePoint group. Both give me the same error - Response: {"error":{"code":"-1, Microsoft.SharePoint.Client....
1
vote
1answer
687 views

SharePoint 2013 REST API $expand issues

I'm new to using the SP API's and I am having an issue getting the required result using $expand on list lookup columns. I have 3 lists named ProjectList, SiteList, RegionList with relating lookup's ...
1
vote
1answer
168 views

Getting objects with today's date in Rest API

I need to fetch task objects which are completing today using Rest API , Can anyone please suggest how can we use today option to filer the data? I am using below query: /api/Objects/Task?$filter=...
1
vote
1answer
3k views

Upload multiple files with REST API in document library with custom properties

I am trying to upload multiple documents to the document library, I followed the answer posted on this link, I am able to upload the documents but I have some custom columns in the library, please ...
1
vote
1answer
54 views

Sharepoint Online Rest API - VBA - 401 unauthorized - SPOIDCRL token

I'm trying to use the rest api to get info about a doc library but keep getting 401 unauthorized - the code below worked for a bit for me but not other users now it doesn't work for me either... I ...
1
vote
2answers
161 views

Rest Search API SharePoint

I am trying to retrieve images using REST SEARCH API from multiple Picture Libraries distributed across sub-sites(sub-sites are all under a single site collection https://xyz/site/*) .I also need to ...
1
vote
1answer
41 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?
1
vote
1answer
183 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 ...
1
vote
2answers
3k 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, ...
1
vote
0answers
10 views

C# api upload to SharePoint [closed]

I want to read and upload on SharePoint, anyone can help me ? I use C# api. I try by Cloudinay and Api works.
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
2answers
1k views

How to get version history of item using REST

Very new to SharePoint so I am sure this is a newbie question... I did look at the forums. Here is the command I am using: https://Server/Site/_api/lists/getbytitle('Equipment%20and%20Inventory')/...
1
vote
0answers
59 views

Yahoo Weather API stopped working in JQuery [closed]

I'm using the Yahoo API code to retrieve the weather information since last 5-6 years but it is stopped working since last couple of months automatically var URL ='https://query.yahooapis.com/v1/...
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
1answer
319 views

SP Online REST API Durable Document Link

My google searches have all led to dead ends. Is there a way to retrieve the durable link code for a document using the REST API? When you copy a link in the GUI, it takes the form of:- https://...
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
1answer
92 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 ...
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
0answers
63 views

SharePoint Online/365 with SAP API [closed]

Has anyone pulled data into SharePoint Online (365) from SAP using an API? Any recommendations on where to start, what to think about, and what to watch out for? Any tips appreciated!
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
6answers
6k views

Searching Users in AD through REST in sharepoint?

Any ideas on trying to find/search users by id in Sharepoint by a REST query? At the moment I am playing around with the clientside people picker to search for users https://msdn.microsoft.com/en-us/...
0
votes
1answer
18 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 ...
0
votes
2answers
290 views

Get items publishing status and validity via search api

I am trying to receive items via the SharePoint 2016 REST Search API, which works pretty good. However as I have some people with the permissions to view unpublished items or items which have expired, ...
0
votes
2answers
5k views

Update person or group field using REST API in Document Library

I want to update the Person or Group field in Document Library using REST API. How can I achieve this. Thanks.
0
votes
1answer
13 views

Difference of two files using SharePoint

How do I get the diff of file1.csv and file2.csv from SharePoint (maybe using API calls, if possible)? diff : Compare the contents of file1 and file2 and produce the list of changes necessary to ...
0
votes
1answer
48 views

Sharepoint api search by properties

I am trying to see if I am able to search sharepoint from a given string https://myShrp_URL/My%20Document/_api/search/query?querytext='Node: 592832'&selectproperties='Node' I notice it is not ...
0
votes
2answers
937 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 ...
0
votes
2answers
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 ...
0
votes
1answer
362 views

you don't have authorization to view this page

I can't open web services link in SharePoint Getting this error when open http://site/_vti_bin you don't have authorization to view this page If someone can help me. I will be appreciated
0
votes
1answer
2k views

Interpret Search with refiners url query string

After the defult search web part with refiners is loaded, i need to execute the same query in a second moment. I have a complex url to interpret (decoded yet), like this: ...#/Default={"k":"b*","r"...
0
votes
1answer
18 views

Adding request limit to Sharepoint/Office 365 API List search

I have a url I am using to query a list in Sharepoint formatted as below. http://sites/sites/site/_api/web/lists/getbytitle%example%/items?$select=Email/EMail&$expand=Email Because my list has ...