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
1answer
21 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
14 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
23 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
21 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 ...
1
vote
0answers
28 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
28 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
82 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
16 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
12 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
20 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
31 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
78 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
49 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
27 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
37 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
0answers
34 views

Calling Enterprise api from SPFx

I’m facing this issue where I try to call an enterprise api from SPFx code. These api’s are made in Oracle REST Data Services and use the Azure AD authentication via an Azure App registration which ...
0
votes
0answers
55 views

REST API to create alerts

I tried creating an custom alert using _api/web/alerts/add. But getting unknown error. I referred this Create list alert using REST for creating an alert. Does the the alert functionality exposed ...
0
votes
1answer
42 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
0answers
20 views

What do I have to change so that sharepoint properly decodes my base64 document?

I am currently trying to upload a file from Business Central to SharePoint using the REST API. For the sake of simplicity, I first took a picture. I converted this image to BASE64 and attached it to ...
0
votes
1answer
63 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
62 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
55 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
110 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
31 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
22 views

Uploading files using API as another user (on prem, 2019)

I am looking for a confirmation (and at least rough steps) that uploading files via API as another user is possible. Setup info: on premise SharePoint 2019 on premise AD separate web application (...
0
votes
0answers
88 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 ...
0
votes
0answers
37 views

Share Object method child items - Sharepoint rest api

I'm using the SP.Web.ShareObject method to grant access to a folder for an external user and it works ok, but the user can't see the files inside this folder. Here's the body of my call : { "url":"...
1
vote
1answer
233 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
49 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
75 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
25 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
0answers
16 views

User permissions API in Sharepoint 2013 Workflow

For few API's like adding user to group and assigning role to user keeps returning Unauthorized. Have already tried the below steps: 1.Full control to Workflow in appinv.aspx(both with and without /...
0
votes
1answer
14 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
77 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@...
0
votes
0answers
18 views

Create folder in attachments on costum list

I despair slowly. I want to create a folder via JavaScript and rest api in the attachments of a custom list. but I can't find an example on the internet. Who can help me? My List Name ist "Reviews" ...
0
votes
0answers
39 views

Bulk Restore Version history to specific version

Can someone perhaps help me out with the best way of restoring the a specific version for all list items. So using this method above I can retrieve the entire version history for list items using the ...
0
votes
1answer
16 views

How to skip a failed api lookup and pass null parameters instead?

If the "Title" parameter isn't passed via the url, then my initial api call fails, but even failure, I need it continue to the my item save routine. Unfortunately, an error is thrown on ...
1
vote
2answers
460 views

MS Graph presence - forbidden 403 error

I'm getting 403 forbidden error in my SPFx web part when trying to access Teams presence (mine and other users as well). I have set permissions in package-solution: Permissions: { "resource": "...
0
votes
1answer
46 views

How can i find the Excel services URL for my file?

I'm trying to access through the Excel Rest API an excel file "My Excel File.xlsx", but regardless how I what excel services URL I use, I either get 404 or file does not exist or is deleted. This is ...
0
votes
0answers
37 views

How to authenticate with the newest SharePoint using SOAP?

I would like to authenticate using SOAP XML. I found this resource which appears to be the preset for authenticating with SharePoint, which is apparently 7 years old and the http://schemas.microsoft....
0
votes
2answers
95 views

Access Graph API from localhost (SharePoint extension)

I'm developing a SharePoint extension (ListViewCommandSet extension). I have no clue (can't find any docs about this) how to give permissions to access Graph API (even the /me call gives a 403 ...
0
votes
0answers
34 views

How to get rid of exception on ChangeManager SharePoint?

I am working on SharePoint site notifications using webhook. I have added webhook subscription using the following reference Get started with SharePoint webhooks. I have got Notification from the ...
0
votes
1answer
89 views

Get all managers for a user - company hierarchy structure

How to get a list of all managers for a users? Example: User A reports to user B User B reports to user C User C reports to user D (CEO) and top of the hierarchy. By giving user A I should get: [B,...
0
votes
1answer
92 views

SharePoint Online - CSOM API requests for getting site metadata fails when permissions are properly set

I've got an interesting permissions problem with the CSOM API. We have about 200 site collections. I have created a Permission Level on each site collection, and have assigned a Service Account AD ...
0
votes
1answer
458 views

Authentication methods for SharePoint REST API

Let's say I work in company AAA and want to automatically upload documents to BBB's company SharePoint Online application https://BBB.sharepoint.com using REST API. My email username@AAA.com is ...
0
votes
1answer
710 views

Managing Content Type using REST API

How can i manage Content Type in SharePoint List using REST API, it's look like a very wide question, isn't it ? well what i'm looking for exactly is: How to change content type visibility option to ...
1
vote
1answer
571 views

Download multiple files at a time from using HTTP Rest API Calls

I am able to download a file from SharePoint using the API GetFolderByServerRelativeUrl. However I'm looking to download selected files at once from SharePoint. Is there any possibility to do this?
0
votes
1answer
679 views

How to update “Person or Group” column in SharePoint List using REST API

I am looking for a way to update a column of type "Person or Group" using HTTP Request of type REST. Thank you.
0
votes
0answers
20 views

Sharepoint call external web service real time

i am using sharepoint workflow 2013 to call external web service from external web site. How to i set real time connection between external web service and sharepoint? In the other words , i want to ...

1
2 3 4 5