Comments (8)
Hey @OzBob, would you mind recording a short video walkthrough of your hack? Any format will work. It's not required for the hackathon but it would help us showcase your work both internally at Microsoft and publicly in the community. 😊
from hack-together.
@waldekmastykarz OBS screen capture uploading
from hack-together.
Have you seen this https://learn.microsoft.com/en-us/graph/api/driveitem-list-children?view=graph-rest-1.0&tabs=csharp#list-children-in-the-root-of-the-current-users-drive?
from hack-together.
Awesome! Thank you for your hack!
from hack-together.
first attempt at OBS screen capture
2nd vid with a working example of listing sites, despite the MSGraph explorer not listing sites.
it will also include a debug view of the site\drives endpoint call: https://github.com/OzBob/hack-together/blob/ozbob/dev/src/SharepointFileSystem/0Console/Experiments/SharepointExamples.cs#L41
and the drive{id} endpoint blank result.https://github.com/OzBob/hack-together/blob/ozbob/dev/src/SharepointFileSystem/0Console/Experiments/SharepointExamples.cs#L55
2023-03-15 20-39-17ScreenCapture.zip
from hack-together.
@waldekmastykarz / community can I please ask for some help on how to query msgraph 'sites' using dotnet client when query is: ...sites/{siteid}/drives/{driveid}/root:/BaseDocuments as per @PaoloPia' example here https://youtu.be/rjZnuuKQu3c?t=247
from hack-together.
@OzBob, could you please elaborate a bit what you'd like to achieve? In your question you're referring to sites but then sharing the API URL to a document library.
from hack-together.
Thanks @waldekmastykarz! Much appreciated.
My project is to 'Copy a local folder up to Sharepoint'.
Starting with a single file C:\BaseDocuments\folder\subfolder\file.docx
Check Sharepoint to see if it exists.
Upload it or update it into Sharepoint at: clientsite\basedrive\BaseDocuments\folder\subfolder\file.docx
I used Paolos on Youtube to guide me how to get the Graph Explorer REST endpoints working, but I am still not getting the msgraph dotnet client to work.
I have used the MSGraph Client to
- get the site.Id, from Sites["tenant.sharepoint.com:/sites/clientsite/"]
- get the Drive[0].Id from Sites[siteid].Drives -> match on name 'basedrive' to get 'driveid'
My sticking point now is to find the children under the sites\drives\root\
- MsGraph Explorer at returns children here
...sites/{siteid}/drives/{sdriveid}/root:/BaseDocuments
How do I write that in C#?
I'm using this to get the Children 'folder'
var rootWithChildren = await graphClient
.Drives[drive.Id]
.Root
.GetAsync(requestConfiguration => {
requestConfiguration.QueryParameters.Expand = new string[] { "children" };
});
var firstRootWithChildrenId = rootWithChildren[0].Id
var BaseFolder = await graphClient
.Drives[siteDriveid]
.Items[firstRootWithChildrenId]
.GetAsync();
Once I get to the child document 'file.docx' I'll start researching bulk upload/download as some docs will be bigger than 4MB
from hack-together.
Related Issues (20)
- Project: Summarize an email (Use Cognitive Services for the summarization) and send the summary to a Teams channel. HOT 4
- Project: [Microsoft Learn Tutorial] Build dotNET apps with Microsoft Graph SDK HOT 4
- Project: Graph SDK to get calendar items and send mail HOT 1
- Project: Create Teams Meeting HOT 1
- Project: Gets a specified attributes of a signed in users profile information HOT 1
- Project: This is a sample app that get user info using the Microsoft GraphApi HOT 1
- Project: Automation in Hazardous Jobs HOT 5
- Project: An app for aggregating and sharing files from all drives in an organization HOT 6
- Project: Microsoft Teams Bot - Schedule Meetings for a Team and send the meeting link by e-mail for all members HOT 2
- Project: Financial Control HOT 6
- Project: This Web Portal Displays TeamsUser details along with their Current Availability Status HOT 5
- Project: Console app using GraphApi to see next events and create new ones HOT 5
- A helper in need on Microsoft Teams HOT 5
- Project: Convert users' meeting recordings to summarized text and send summary by email HOT 2
- Project: What was I doing again? HOT 3
- SharePoint Large File Downloader & Uploader Toolkit for the Modern Workplace HOT 4
- https://nam06.safelinks.protection.outlook.com/ap/p-59584e83/?url=https%3A%2F%2F1drv.ms%2Fp%2Fs!AuNMtEjxAns_gQpFYBenRALwSV5B%3Fe%3DXDO5eJ&data=05%7C01%7CDaisy.Chaussee%40microsoft.com%7C0c6c70c7cabf42360ca708db2616a024%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C638145651782668569%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000%7C%7C%7C&sdata=FQhX00ygwuDCoYdb%2BDtO3ts6Y3gMn4MzceXEQa1chvo%3D&reserved=0: <short description> HOT 1
- It will be possible to write a comment in a specific cell in an excel file? HOT 1
- Project: Summarize videos hosted in Drive HOT 1
- Project: <Hack-together> HOT 1
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 hack-together.