Comments (1)
I think what is happening is that the code is expecting a list of files returned in the body. But by changing to the root you are not getting a list of files. So the following code (around line 64) which expects to process a list can't find the index of any files in the array.
const oneDriveItems = graphData["value"];
for (let item of oneDriveItems) {
itemNames.push(item["name"]);
}
Also be aware of this line which passes parameter filters that can alter the returned values. This may need to change based on which API you want to call.
const params = '?$select=name&$top=10';
You'll need to adjust the code to handle the response for whatever Microsoft Graph API you call.
Hope this helps,
David
from office-add-in-samples.
Related Issues (20)
- Not able to display Html HOT 5
- Error when using non-localhost as redirect URI. HOT 8
- How to create Word Add-in SplitButton Control? HOT 1
- Office.AutoShowTaskpaneWithDocument with shared runtime? HOT 6
- Outlook-Add-in-SSO-NAA: Questions on usage on mobile devices HOT 2
- Can we implement NAA-SSO for spam-addins?
- Hello World add-in doesn't work in desktop Outlook 2016 HOT 4
- In SSO fallback, getAccessTokenMSAL() returns a different result than Office.auth.getAccessToken()
- In SSO Fallback, getAccessTokenMSAL() returns a different user than Office.auth.getAccessToken() HOT 7
- The Spam Reporting example uses Office.onReady, which will not work on Classic Outlook HOT 3
- Edit the Existing mail HOT 8
- is there a equation support? HOT 1
- Outlook Add-In SSO NAA example contains code that isn't in the types. HOT 3
- Outlook SSO NAA in pure JS without node.js HOT 3
- Excel custom function on blazoraddin technique works locally but not when published on AZURE HOT 3
- Outlook-Add-in-SSO-NAA worked only once. I can't get any token anymore HOT 3
- outlook-spam-reporting, no reports or forward HOT 4
- Spam addin manifest could not be loaded in Outlook. HOT 9
- Outlook Add-in Development Using Blazor's Interactive Rendering Mode in .NET 8 HOT 1
- Feature request: Please provide a sample showing use of NAA in a launch event on Classic Outlook on Windows HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from office-add-in-samples.