Questions tagged [microsoft-graph-files]

Microsoft Graph Files refers to the OneDrive and SharePoint Files APIs in Microsoft Graph. This tag should always be used in conjunction with the [microsoft-graph] tag.

204 questions
0
votes
1 answer

How do I globally address a Microsoft Graph driveItem?

DriveItems only seem to be accessible by ID if you know which drive it resides in. What's the best way to globally identify a DriveItem? e.g a URN that can be used with the C# graph SDK? Preferably one way that will work with Sharepoint, Teams and…
0
votes
1 answer

GraphAPI request content Read/Write Timeout Throwing Invalid Operation Exception

The code below creates a new folder within the SharePoint which will then copy a power point and add it to the newly created folder. I am making 2 requests, one to get the file itself and another to get the file contents for an appropriate copy.…
0
votes
0 answers

Add Power Point to existing folder within SharePoint

I have some function (shown below that works as expected) that creates a SharePoint folder. For simplicity sake we can ignore the operation of creating a folder and assume the folder already exists within the SharePoint site... I am curious as to…
0
votes
1 answer

Graph API - Get nested drives

I am trying to retrieve a nested folder using the Graph API sdk in C# with the following folder structure: (site) site.sharepoint.com -> (folder) 2022 -> (folder) October -> (folder) 25 Using this code: var dayDrive = await graphClient …
0
votes
0 answers

Issue with multiple tenants: The remote name could not be resolved: 'xxxx.sharepoint.com' when fetching a file from Sharepoint in app hosted in Azure

Both today and friday we are experiencing connectivity issues to Sharepoint online from specific hosts in Azure Amsterdam. Some host can resolve the dns name, some can't. This happens when we try to pull a file from Sharepoint using the Graph API.…
BoKDamgaard
  • 378
  • 1
  • 19
0
votes
0 answers

Spell corrections not working when refining queries with aggregations

I'm searching for list items using the /search/query endpoint of MS Graph. I want to use aggregations and spell checking. This is my request { "requests": [ { "entityTypes": [ "listItem" ], …
0
votes
0 answers

504 on Graph copy of large folder

We have a process that includes copying and renaming a template folder. The template folder is ~20MB. We are getting a 504 with code "UnknownError." According to documentation, we should be receiving a monitor response back, but that is not…
0
votes
1 answer

Is there a way to use the OneDrive API to store files and edit them directly from a link, without SSO authorization?

I am creating an app and I would like have a feature, where users can upload files and access them. If those files are either .docx and .xlsx, I would like to store them in Microsoft OneDrive and allow the user to directly go and edit them via a…
0
votes
1 answer

What is the best way to retrieve SharePoint files' '@microsoft.graph.downloadUrl' from MSGraph when using the search query?

I'm creating an application that gets SharePoint files and uses the downloadURL in various places, I'm struggling with finding an efficient way of searching files whilst also being able to get the information I need in the response. To search the…
0
votes
0 answers

MS Azure App - Cross organisation (Multi Tenant) access to Sharepoint files

Required: MS Graph App that has access to companyB.sharepoint.com drive/file items for a member of CompanyA I am from Company/Organisation A. I have been granted access to a sharepoint site of Company/Orgtanisation…
JI-Web
  • 481
  • 6
  • 27
0
votes
0 answers

Microsoft Graph API Bearer Token expires after an hour, can I extend it?

I have a PowerShell script that uploads data to a SharePoint site, however, the script needs more than an hour to upload all the data. Is there anyway to increase the tokens life span. Below is the call I use to get the Bearer token $TenantId =…
0
votes
0 answers

Graph API for OneDrive returns item not found

I am seeing that for an item the metadata query (GET /drives/drive-id/items/item-id) is failing with response Code: 404 "The resource could not be found". What we have seen that this particular item is marked with red circle in OneDrive (we haven't…
0
votes
0 answers

Graph API delta query returning unchanged items

(I am not sure if this question qualifies for StackOverflow topics but still posting here as I saw similar questions.) I am seeing a weird issue where sometimes the delta query returns items that are not changed. (This is not seen very frequently.)…
0
votes
1 answer

Unable to create a subscription for the DriveItem resource

I am trying to create a new subscription for the DriveItem resource on Microsoft Graph, I have a web application that handles the Files API successfully, I have the ability to authenticate and handle the DriveItem resources succesfully. When I am…
Oscar Marin
  • 136
  • 2
  • 8
0
votes
1 answer

create upload session to sharepoint site folder on Office 365 using microsoft graph

TLDR; I have several Office 365 SharePoint sites. I would like my NodeJS based daemon that is registered as an Azure App Registration to write to several different folders within these SharePoint sites. I am struggling to get the correct syntax of…