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
0 answers
24 views

Querying, analyzing, and displaying data from external API in SharePoint

I am a new SharePoint developer and I am tasked with displaying trends in data from Zendesk in SharePoint. I have been reading the Microsoft documentations and from what I have been reading the ...
Gnome-Improvement713's user avatar
0 votes
0 answers
16 views

How to know if I can trust an SPFX webpart?

I am in the process of implementing an spfx webpart but before I need to make sure it is not a security threat. From researching I was not able to find if there is any way to run a check or provide a ...
Santiare's user avatar
0 votes
0 answers
12 views

Problem making 3rd party react API POST calls using SPFx

I am having same issue as posted this in post How to Call 3rd party API using Azure function and display in SharePoint online Site using SPFx?. Did any one find a solution? Here is the sample code: ...
Sruthi's user avatar
  • 1
0 votes
1 answer
113 views

Update SharePoint List item using Rest API in C#

I am writing an API in Web API 2.0 on C# to perform various Actions with SharePoint List items. I have tried the following code to update the Status Column of a List item: HttpWebRequest ...
Alina Anjum's user avatar
0 votes
0 answers
18 views

CRUD actions in a SharePoint MsLists

We are trying to automate some actions, which are now handled manually. The thing we try to achieve is to insert automatically data from a webform into a new MsLists line. For this we need to connect ...
Duikboot's user avatar
  • 101
0 votes
1 answer
176 views

Get Items from SharePoint is raising this error :- "The attempted operation is prohibited because it exceeds the list view threshold."

I have this Get All Items where i define the threshold to be 100,00 as follow:- now on runtime >> i will get this error , any advice how to fix this error? The attempted operation is prohibited ...
microsoftdeveloperdesigner's user avatar
0 votes
1 answer
41 views

SharePoint API - ItemCount shows something but empty list of files and folders

I'm accessing a SharePoint folder that contains two files and a subfolder. I'm getting back a correct ItemCount but no list of items. Using a made-up path of /sites/sitename/folder1/folder1, and ...
Terminologist's user avatar
0 votes
0 answers
29 views

Accessing the marketplace API in SPFX

There is sufficient documentation on how the Marketplace API can resolve, activate, list,etc subscriptions (here for instance). However, now that I'm forming an understanding of how that works, I ...
JJD's user avatar
  • 493
0 votes
1 answer
308 views

Read large lists with Office365-REST-Python-Client

I am currently trying to read only the last week's entries of a few lists, and I accomplish this by using filter("Modified gt datetime{date_in_isoformat}') or order_by("Modified desc")....
TwoPointNo's user avatar
0 votes
0 answers
28 views

How to write web API to consume SharePoint list data to expose it to other platforms

I need to write a webapi to consume data and doing CRUD operation in SharePoint list.I am little bit confused about how to to that. Please give some suggestions or reference for this one.
user2915027's user avatar
1 vote
0 answers
40 views

How to mark a page as a language copy?

I have a SharePoint Online site, where I need to translate some pages into different target languages. My site's default language is English, thus the source language of a page is always English. The ...
privm's user avatar
  • 23
0 votes
1 answer
59 views

Azure function inside Sharepoint site redirects to login window

I put on a Sharepoint site an ajax request to my azure function. This azure function requires authentication because its logic depends on which user is using my sharepoint site. All users who test my ...
Mike79's user avatar
  • 11
0 votes
1 answer
187 views

Sharepoint Microsoft Graph API limit

I am trying to make a an application that will use the Microsoft graph API to connect to Sharepoint to do various tasks. Recently I have found that there is a throttling/blocking limit for the API, ...
yousif fayed's user avatar
0 votes
1 answer
400 views

CSOM vs PnP Core SDK vs Graph API, which approach is more future proof

We want to start a new project which include creating an azure function (using .net 6.0) that runs on timely basis to create folder structure as follow:- we have a SharePoint custom list which allows ...
John John's user avatar
0 votes
0 answers
94 views

KeyError with Sharepoint API - For a list

We are using Shareplum to call Sharepoint SOAP API and ingest data from Sharepoint Lists. We are doing this for ~20 different Sharepoint Lists. However, for one of the Sharepoint List, the API ...
sachinxe's user avatar
0 votes
1 answer
181 views

use rest api to search a specific folder inside of shared documents

I have added to the HelloWorld web part starting example to include a search, and I have successfully limited it to my site instead of the entire tenant. const here = this.context.pageContext.web....
Mark's user avatar
  • 101
0 votes
1 answer
286 views

how fix CORS policy when I call an API?

How can I fix this error? I can't call my API from the backend
SiCaMa's user avatar
  • 15
0 votes
1 answer
752 views

403 Forbidden when uploading file to sharepoint using REST API. Permission issue or missing header?

I am new to Sharepoint and REST APIs and am currently having an issue uploading a file using REST API. I am getting error System.UnauthorizedAccessException","message":{"lang":...
ecc07's user avatar
  • 1
0 votes
1 answer
2k views

SharePoint REST API _api/web/currentuser Attempted to perform an unauthorized operation

I'm doing Office365 account-based login functionality through SharePoint on PHP. After doing that I was able to login and get the SPAppToken and SPSiteUrl I use them to get the refreshToken, then I ...
tranthaihoang's user avatar
0 votes
1 answer
167 views

How to create a specific language copy of a page with REST API?

I came across this article, which states that a language copy can be created with an API call like this: POST https://tenant.sharepoint.com/sites/sitename/_api/sitepages/pages(<Source page ID>)/...
privm's user avatar
  • 23
0 votes
1 answer
122 views

Can someone please guide me how to download the release of phpSPO?

I want to retrieve data from sharepoint via API but I can't install phpSPO. Composer method is relatively easy but is very complex for me. So, please share the link so I can download the release and ...
Amir Mureed's user avatar
0 votes
1 answer
398 views

get sharepoint public image using graph api

I want to get a public URL to get the images of a list column using the graph API When using the sharepoint REST API I could do it this way: https://mysite.sharepoint.com/sites/namesite/_api/web/lists/...
shadowsa7x07's user avatar
0 votes
0 answers
31 views

How do I set a person or group field via the API V1 using Rails with Faraday?

I've seen several similar questions and the crux of the answer seems to be that I should add "Id" to the field name and pass the user's id. Here for instance: How to update "Person or ...
Matt Jordan's user avatar
0 votes
0 answers
11 views

Login using get request

I am currently trying to work with the api for my school schedule, but access for this requires you to sign in with sharepoint/microsoft. Is it posibble to do this using a get/post request? i saw you ...
syter's user avatar
  • 1
0 votes
1 answer
164 views

SharePoint Online Managed Path

Does anyone know how to get this information through rest API or PowerShell? I wanted to know if the tenant I am working with is using "/teams/" or "/sites/". I am creating an ...
Billy P's user avatar
  • 236
0 votes
0 answers
19 views

SharePoint 2019 Production farm started having struggle load Font File/Random PNG File/Random API call

We have a SharePoint Farm (7 WFEs and 1 DB), last code deployment was weeks ago. Since Friday, when we load the web portal that is hosted on the farm via browser and via any location (worldwide), ...
Tasos's user avatar
  • 101
0 votes
0 answers
68 views

Get thumbnailRenderer on all rest api responses?

I have a list with a column of images, I always want to get the thumbnailRenderer parameter in the sharepoint rest api response sometimes i get. my query is: https://testttr.sharepoint.com/sites/...
shadowsa7x07's user avatar
0 votes
1 answer
841 views

Is there a way to export a list as a csv file with the Rest API?

Via the user interface in Sharepoint there is the possibility to export a list as .csv. Unfortunately, you can only load the items from the list via the Rest API, but not download the entire list as a ...
Vincent Jobs 's user avatar
1 vote
1 answer
283 views

Ajax call to SharePoint API returns '403 - Forbidden'

I need to access data on a SharePoint Online site from a php application. I'm using SharePoint API with JavaScript trying to achieve this. I already succeeded in accessing the SharePoint site with ...
Emmanuel Ingelaere's user avatar
0 votes
1 answer
93 views

Listing all sub-sites that you have access to in a site collection

In my situation, I have a site collection `/sites/mysitecol` - site collection - `/sites/mysitecol/test1` - sub-site - my user has access to this site. - `/sites/mysitecol/test2` - sub-site - my ...
Nicholas DiPiazza's user avatar
1 vote
2 answers
1k views

Incorrect API Endpoint URL

I'm very VERY new to SharePoint and am currently working on a project with needs a react SPFx Web Part to be developed which can be put on any site/page to read data from Document Libraries. However, ...
Bentura's user avatar
  • 35
0 votes
2 answers
121 views

Which columns are being returned from an AJAX call?

I know the names of some columns - FirstName, LastName, JobTitle, SAMAccountName, Department that an API serves out but I would like to know all the columns that are returned. How do I find out the ...
Pete Whelan's user avatar
1 vote
1 answer
70 views

Access files via autogenerated ID through REST API

what I'm currently doing is accessing the files in my Document Library through the REST API like this: [baseURL]/_api/Web/GetFileByServerRelativeUrl('[relativeURL]'). To collect these relativeURLs, I ...
nanoxid's user avatar
  • 13
0 votes
1 answer
54 views

Grant permission to a sharpoint-online subsite

I'd like to grant permission to a subsite of sharepoint-online using the Sharepoint API. The subsite is created using the following parameters (I was using Power Automate - but in the end it is a API ...
Christoph's user avatar
  • 101
0 votes
1 answer
236 views

How to get the page count of a PDF document stored in sharepoint through REST API?

From a salesforce site, we want to retrieve the page count of pdf documents stored in a SharePoint site, How to get this through REST or some alternative way?
Akshay Poddar's user avatar
0 votes
2 answers
3k views

List all the members of SharePoint groups with Graph API

Is there any endpoint in the Microsoft Graph API fore SharePoint Online to list all the groups and members of SharePoint groups? It must also be possible to manage the users from those groups. As ...
H. Pauwelyn's user avatar
0 votes
1 answer
721 views

Help with post request from SPFx secured by AD

https://docs.microsoft.com/en-us/sharepoint/dev/spfx/use-aadhttpclient-enterpriseapi < I have a few GET requests working in my SPFx app, but the guide here doesen't show you how to do a POST ...
BennKingy's user avatar
  • 406
0 votes
1 answer
163 views

REST API: upload a file to a Docset

Similar to this (Upload multiple files using rest api) I want to upload files to an existing Docset. I am using the pure REST API as I am on Java. I asked myself, how to control where the uploaded ...
Oliver Busse's user avatar
0 votes
1 answer
430 views

Using Send an HTTP request to SharePoint to send requests to Non-SharePoint sits

I was really surprised that the Send an HTTP request to SharePoint action in Power Automate can be used to send requests to https://presence.teams.microsoft.com: I was really intregued to try it ...
Denis Molodtsov's user avatar
0 votes
1 answer
112 views

How do I create a page in SharePoint and manage its content?

I would like to set up a system for deploying content into a SharePoint (O365) site using C# code. I would be reading text files in Markdown format and either converting them into HTML for publishing, ...
Mark's user avatar
  • 101
1 vote
0 answers
156 views

Manipulate sharepoint group membership using REST API from external app

I have an application that is secured via OpenID Connect / Azure AD. It is a webapp that is not running as part of the Sharepoint Framework. However, the app does need to interact with SharePoint in ...
ddewaele's user avatar
  • 111
0 votes
1 answer
54 views

Send email to users with expired documents

I want to be able to send email to each user which has expired documents and be able to know when the expiry date email was sent. The item contains worker name, their expiry date, and the heading of '...
user7878's user avatar
1 vote
1 answer
181 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 ...
Ushka's user avatar
  • 277
1 vote
1 answer
902 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 ...
MindingData's user avatar
0 votes
1 answer
1k 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/...
JNA's user avatar
  • 23
0 votes
1 answer
162 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=&...
Artur Auhatov's user avatar
0 votes
2 answers
931 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/ ...
Artur Auhatov's user avatar
0 votes
1 answer
85 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 ...
Richard   Housham's user avatar
0 votes
1 answer
946 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('...
rezouane marimouttou's user avatar
1 vote
2 answers
3k 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 ...
Kyle Trent's user avatar

1
2 3 4 5 6