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
0
votes
0answers
6 views

Create/Update List Item using XML

In this link following example requests are given for create and update - Create Authorization: "Bearer " + accessToken Accept: "application/json;odata=verbose" Content-Type: "...
0
votes
0answers
7 views

Sharepoint API - 401 while authenticating ANT account with full control

We are trying to achieve programmatic access from a Python3 script, to a Sharepoint site that we own. On our SP site, we have given full control to a ANT\robot-system-account system account. The ...
1
vote
1answer
13 views

Static IP address for custom SPFx App and SharePoint Online

I have a custom web part that I'm building using SharePoint Framework to go on my SharePoint Online tenant. The application will be hitting a third-party API to fetch data. The complication is that ...
0
votes
0answers
47 views

Full Text Search Across Document Library

I am attempting to build a powerapp on top of a sharepoint list that can do both full text searching of documents and filter by metadata in the document library. I am currently stuck on being able to ...
0
votes
0answers
7 views

I am trying to download file from SharePoint through c# code but i am getting this error. ({StatusCode: 400, ReasonPhrase: 'Bad Request', )

public async Task<ActionResult> DownloadFile(string serverFileUrl) { //var webUrl = "https://sharepoint.com/sites/509847/"; Uri webUrl = new Uri("https://...
0
votes
0answers
14 views

SharePoint Query To Add Date To URL and Make it “Current Date”

Is it possible to use SharePoint API to trick the page into thinking the current date is that of something typed into a DataTable search? Then take the input.val() and append it to the query.
0
votes
0answers
14 views

How do I get the web url from webparts?

I'm using the Graph API to fetch the pages from my site - I'm trying to use it as a CMS to provide content for another site. I've got all the authentication and display bits set up and working already ...
0
votes
1answer
67 views

Sharepoint API creating folder 403

I am new to the SharePoint API. I am trying to create folders in a customer SharePoint solution. Problem is i'm getting a 403 return. My request.: POST https://companyname.sharepoint.com/sites/Test/...
0
votes
1answer
23 views

May I add a custom attribute in SPField SchemaXML to create

Could I add a custom attribute (MyCustomAttribute="true") in SchemaXML of SP.Field and create it by REST API? <Field Type="Text" DisplayName="AwesomeField" MaxLength=&...
0
votes
2answers
31 views

How can I get parent guid of an item?

I have a list with items in SharePoint Online. There many items and their structure look like a tree. list/ itemA/ itemB/ itemBa/ itemX itemBb/ ...
0
votes
0answers
20 views

Why does Get-SPOSite Fail Intermittently?

Has anyone else seen this intermittent error with Sharepoint Online service: Get-SPOSite -identity https://<mysite>.sharepoint.com/sites/100060-24 Get-SPOSite : Cannot get site https://<...
0
votes
1answer
27 views

SharePoint High Trust 401 after a day

we are experiencing a really difficult problem and TBH could do with a few ideas of things to check over. So we have a high trust SharePoint application that works well however it just seems, most ...
0
votes
0answers
16 views

SP2013: Find all webparts and search for tags on a site using the API

I am using several api approaches to gather information from my SP sites, among them is: https://domain/sites/sitename/_api/lists I am searching for an api method to find all webparts on a site, and ...
0
votes
1answer
63 views

AJAX Request to sharepoint REST API But receiving CORS error

I want to request a sharepoint server with ajax but I get an CORS error : How can I solve this issue please $.ajax({ url: "http://myserver.com" + "/_api/web/Lists/GetByTitle('...
1
vote
2answers
261 views

Retrieve SharePoint file with API using document ID from any document library

In site collection features there is an option to enable Document ID Service. After doing this, whenever a document is uploaded to a document library, a unique document id that is a link to the doc is ...
0
votes
0answers
18 views

Call Azure Web API with External Content Type Sharepoint Online

I want to call the Azure Web API (OData) with an External Content Type (BDC Model) in Sharepoint Online, but I'm stuck trying to figure out if this is even possible since I can't find a way to handle ...
0
votes
0answers
7 views

Template for combining recorded audio with viable sharePoint list fields

Looking for Core Scaffolding ( e.g. JSON, or API) designed to mix in fixed audio with individual fields in a SharePoint list. In example the audio has a fixed message- such as "Current Pallets ...
0
votes
1answer
31 views

Block SharePoint Online APIs

Is it possible to block people from using SharePoint Online APIs like REST, etc even if they have permissions to access a site?
1
vote
0answers
57 views

Removing the “Getting Started” webpart with REST API

Is there any way to delete the 'Getting started..' webpart from a workspace (actually the home.aspx) via REST API (or POST request)? Unfortunaly it is not possible to disable the module on the parent ...
0
votes
0answers
16 views

Azure AD App Only RER not getting triggered

I have a selection of Remote Event Receivers (.svc) hosted in a web app in Azure, different triggers for each (deleting, updating, adding etc.). I first deployed them normally and connecting using ...
0
votes
1answer
69 views

Upload Files >250MB via Sharepoint REST API

So I am trying to upload Files to a Sharepoint Site via the REST API. I am already using the /Files/Add() Path-Function, but that one is (from what I've found) per design locked to 250MB max and ...
0
votes
1answer
43 views

SharePoint Online Active Authentication with Two Factor Authentication

Is there a way to make the implementation suggested by Vitaly Lyamin, working with Two Factor Authentication? https://docs.microsoft.com/it-it/archive/blogs/sharepointdevelopersupport/sharepoint-...
0
votes
0answers
17 views

What's the difference between granting addin permission from Azure AD and from appinv.aspx?

When building private SharePoint Addin, API permission can be granted either : from the authorized API tab in registered application in the Azure AD portal or from the /_layouts/15/appinv.aspx from a ...
0
votes
1answer
137 views

Property 'getFolderByServerRelativeUrl' does not exist on type 'IWeb'

I can not access getFolderByServerRelativeUrl() in pnp API. await sp.web.getFolderByServerRelativeUrl() Error: Property 'getFolderByServerRelativeUrl' does not exist on type 'IWeb'.
0
votes
1answer
187 views

Failed to Fetch Error while calling Azure Function

I am calling an Azure Function which is publicly accessible from my SPFx web part. It is a POST Request and I am getting a Failed to Fetch error. The same API call is working fine if I execute it from ...
2
votes
1answer
43 views

why returned date from version history is different from actual date (triggerbody)

It seems the SP data repository and front-end SP list use two different timezones. when I get a date from version history it is different from what is actually shown in the SP list, how can I fix this?...
0
votes
1answer
34 views

Does SharePoint Online have plugin tools for SSRS (SQL Server Reporting Services) or is there an API for accessing and writing reports?

I've been looking around for a while and haven't found anything yet. Any help is much appreciated. Thanks.
0
votes
1answer
572 views

Problem with CORS Policy when call to API with SPFx

have problem with CORS Policy. Get an error: Access to fetch at 'https://XXX.azurewebsites.net/api/protocols' from origin 'https://localhost:4321' has been blocked by CORS policy: No 'Access-Control-...
0
votes
0answers
20 views

Microsoft Teams API

I have requirements where using Team API I have to perform following tasks Identify if teams have any files or folders inside it Get the Teams permission Conversation, Teams have any private or ...
0
votes
0answers
18 views

How to allocate more memory to the listdata.svc service (REST API) in SharePoint?

I'm running a two tier server and I'm thinking that the calls the rest api makes fall under the distributed cache server, but find little documentation on this. How would I grant/allocate more memory ...
0
votes
0answers
19 views

How can i retrieve the datas in one column from a list?

I have a big document library. And i am using C sharp. When the user selects one document from the frontend website(like click method), I want to be able to get the value in Column A of the selected ...
0
votes
1answer
23 views

REST API to add replies to a share point discussion

I am able to post a reply to share point discussion with help of below link. REST Call to Post a Reply to a Discussion Board Topic w/o JSOM but here for posting a message ContentTypeId is required.As ...
1
vote
0answers
35 views

Is there an API or web service for Copy-SPSite?

What API endpoint is called for the command Copy-SPSite? Also, is there a WSDL web service for this command, like there is the ExportWeb service in Sites.asmx relating to the command Export-SPWeb?
1
vote
0answers
259 views

Problem making 3rd party API POST calls using SPFx

I need to fetch few details from the 3rd party API so I am making a POST request (required by the API) to that API using HttpClient But every time I am getting the below error. Access to fetch at '...
0
votes
1answer
51 views

REST or any other API for client side dev to get current users running workflows(Designer or OOTB or MS Flow)?

As part of a requirement the clients would want us to create an SPFX webpart which displays all the document names and the tasks or workflows running on it for that user/current User. Is there a way ...
2
votes
0answers
30 views

Programmatically grant app permissions to site collection?

Is there an API that let's me register an application (App ID) to a site collection like I would do in the below dialog?
0
votes
1answer
54 views

Getting 403 error when calling REST API from HTML/JS in sharepoint online

As from now you cannot create custom aspx files in SharePoint Online nor edit them with SharePoint designer. I'm trying to launch an html with some js (angularJs and jquery) from the same site in ...
0
votes
1answer
79 views

SharePoint Online api, no access

We are making an interface with SharePoint. I did the app registration in AAD, gave SPO degelated permissions via Graph API API call for access token works fine API call to get a file keeps erroring ...
0
votes
1answer
143 views

How to get list of all deleted sites using Microsoft API?

Is there a way to get a list of all deleted sites in sharePoint using Microsoft Graph or SharePoint API? I don’t want to use powershell. I want a api. Thanks in advance
0
votes
1answer
183 views

How to list all personal sharepoint sites using microsoft graph?

I want to fetch following data using Microsoft graph API All the root sites(group + personal) All group root sites All personal root sites For the first case currently I am using https://graph....
0
votes
1answer
166 views

How to fetch all data associated with a SharePoint web part using Microsoft Graph API?

I am wanting to fetch all of the associated data for the web parts of a SharePoint Page using the Microsoft Graph API. Is this possible through the beta or v1.0 API? I can't seem to find any ...
0
votes
1answer
464 views

How can I make a GET request with Headers to an external API?

From a SP Online SPFx Web Part (No Javascript Framework), I've been trying to do a GET request to an API that expects some headers and nothing works. If use Postman, with the same URL and Headers it ...
0
votes
1answer
41 views

Get all groups for a user? (by user name)

In javascript, I'm trying to get a list of all the groups to which a user belongs. For the current user I can use SPServices + GetGroupCollectionFromUser. But for other users I would need the login ...
0
votes
0answers
228 views

Error updating document metadata with REST Flow

So I am beating my head against the wall and have done more searching on SE than I ever cared to. I am trying to update the Modified By field for a document in a Document Library on a Sharepoint team ...
1
vote
1answer
710 views

Sharepoint API update a file throws Specified value is not supported for the serverRelativeUrl parameter

I am trying to update a file in sharepoint using API. I am trying in POSTMAN only. Below are the url and headers which i send. I am using PUT Method. url: https://groupname.sharepoint.com/sites/MMSN/...
1
vote
1answer
125 views

How to securely call an external API from SharePoint?

We have a need to connect to some external APIs from SharePoint. I've seen some online articles about calling APIs that are secured with Azure AD, however, in my case I have no control or influence ...
0
votes
1answer
186 views

API issues downloading image, empty file or corrupted image

What I'm trying to accomplish is this. I'm working on an integration web app that lets our techs pull data from our crm and sharepoint. What I'd like to be able to do is display images held in ...
0
votes
1answer
27 views

API to get all users with specific text in profile

How can I use an api to get all users with a specific text (hashtag) in their user profile field "about me"? Is this the correct way? https://mysite/_api/search/query?querytext=%27aboutme:%22*...
0
votes
1answer
25 views

SharePoint List LookUp field to use API to populate choices

When creating a list in SharePoint, you can choose the "LookUp" field. I would like to have that "LookUp" be able grab information from an API from a different site. Any way to get this process ...
0
votes
1answer
195 views

REST api call using method getbyemail for user in a group returns error “Cannot find resource for the request getbytitle”

Users exist in sharepoint group: If I do simple GET request in browser: https://mycompany.sharepoint.com/sites/testsite2/_api/web/sitegroups/getbytitle('TestGroup')/users/getbyemail('john.theuser@...

1
2 3 4 5