Questions tagged [api]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
1answer
379 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
19 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 ...
0
votes
1answer
47 views

The query to field 'list/ChoiceField' is not valid."

I have a lookup list that contains a choice field. I'm trying to retrieve it's values using rest Expand= "list" Select= "list/ChoiceField" I get The query to field 'list/ChoiceField' is not ...
0
votes
1answer
36 views

Unable to update InformationRightsManagementSettings using REST

The following request returns Status 204, indicating it was a success but the informationrights settings hasn't become updated when I take a look the IRM-settings in the web gui for the list. The ...
0
votes
1answer
19 views

App API Access to Single Site Collection

Is it possible to setup Azure based App permissions to only a single Site Collection? We are putting together a small application which will scrape external documents from various sites and dump them ...
0
votes
1answer
1k 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-...
0
votes
1answer
392 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 ...
0
votes
1answer
3k 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) ...
0
votes
1answer
506 views

AJAX Rest get currency format

I have a 'Price' column of type Currency, but the data in the returned ajax object is just a number. Is the currency format somehow available? Returned data .... Modified:"2017-01-20T14:50:42Z" ...
0
votes
1answer
481 views

How to Parse GetMyProperties REST Response

This is what the pre-parsed data looks like in the console after querying http://mysharepointsite/_api/SP.UserProfiles.PeopleManager/GetMyProperties?$select=Department : I am trying to get the ...
0
votes
1answer
580 views

Filtering REST query by multiple boolean conditions

I am trying convert this pseudo sql query to search api SELECT * FROM Sites WHERE Path IN ("www.xyz.xx","www.zys.xx") AND Type = "STS_Web" Basically I just want to return info about sites by given ...
0
votes
1answer
283 views

Share multiple files of Document Library programatically

I want to share multiple files from Document Library programatically or any other way using Client Object model or REST API. Thanks.
0
votes
1answer
14 views

People / Group column looping through nested data

I am using Javascript / Jquery to pull list data. One of the fields is Author, which is a group / people field that allows for multiple users. I get the data, and I test if there is data in the ...
0
votes
0answers
11 views

consume sharepoint REST web services from html

I want to access list items and files in document library in a sharepoint OnPremise site from my HTML application hosting in another server without any server side coding. I mean i want to ...
0
votes
0answers
9 views

Sharepoint api - Post paragraph of comments in postData causes problems with special characters

SP OnPrem 2016: I'm working with Sharepoint API's in VB.net and I can do GETS, POSTS and MERGES fine. But now I need to post a small paragraph of comments into a sharepoint custom list item. (...
0
votes
0answers
20 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
63 views

PWA Workflow gets Access Denied for API Call to get Assignments

I have a SPD 2013 Workflow on our PWA site that has been working fine for 6 months. My colleague has left the business and Admin have disabled his 365 account. Suddenly, the Workflow is failing and ...
0
votes
1answer
25 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
38 views

Log out SharePoint 2013 API

I am working on SharePoint API, and i have a login method which looks like that : public void login(String configFileName) { CredentialsProvider credsProvider = new BasicCredentialsProvider(...
0
votes
0answers
26 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
2answers
68 views

SharePoint 2013 Rest API (targeting specific columns)

Very new to SharePoint Rest API's, I got the rest to work filtering the first Column but now I am running into issues with showing the multiple columns for example. I am trying to filter out the ...
0
votes
0answers
229 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
55 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
31 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
87 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
78 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
82 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
38 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
1answer
35 views

Sync a Sharepoint list from GCP

Is it possible to create a Sharepoint that has APIs to synchronise the data with data stored on Google Cloud Platform? I would ideally like to implement an API to keep the data in the Sharepoint list ...
0
votes
0answers
108 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
43 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
2answers
173 views

sharepoint API rest custom column http 400

I have a list in sharepoint, where I have put the totals of the columns I am interested in. ID Count=50 Certification Count=9 I want to display these counts on another page. I have found a code to ...
0
votes
1answer
191 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
3answers
825 views

Rest Api Filter on Number Field Starts with

On SharePoint 2013 On Premise, I need rest api filter where I can search some numbers in list starts with. Since records are around 100,000 I can not display all. Hence need a kind of search function.
0
votes
2answers
614 views

SharePoint REST API - update metadata Document Library Item when value string includes apostrophe (single quote) character

I want to update a metadata column for an item (document set) in a SharePoint document library using REST API (via VBA). The below (vba) code extract/simplification works fine for simple cases, for ...
0
votes
1answer
171 views

Get subfolders if folder name contains # (hash)

I am experiencing difficulties with getting the subfolders and files inside the folder that contains #. API URL was: http://site url/_api/web/GetFolderByServerRelativeUrl('/#2')')/folders API ...
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
2answers
455 views

Remove all files using REST

Is there a way I could remove all files from given folder using SharePoint REST api?
0
votes
1answer
214 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
88 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, ...
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
2answers
54 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 ...
0
votes
1answer
25 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
294 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 ...
0
votes
1answer
47 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? ...
0
votes
1answer
837 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 ...
0
votes
1answer
27 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
0
votes
1answer
27 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, ...