Sharepoint API to Upload Files and copy to Ms teams - sharepoint

I need to add files to SharePoint and then need to copy these uploaded files to Microsoft Teams File Tab
Anyone can help me here that what steps I need to follow to create files and then copy to Files Tab of Ms teams.
I was looking at MS Graph API but did not get an idea about it.
Anyone can help here?

Are you talking this File tab?
If so, MS Teams actually store those files in a SharePoint Document Library. If you copy file to the corresponding library, it will appear in File tab.
Thanks

Related

Connecting existing document library to sharepoint site

I was experimenting with MS Flow in Office 365, trying to automatically extract info from excel files. However, it turns out we made some "design error" in our sharepoint structure.
We have multiple central document libraries that are only linked to the Onedrive for Business environment and not connected to a Sharepoint site. (The latter turns out to be necessary for MS flow.) Is it possible to link existing document libraries to a sharepoint site?
EDITS:
Some background: within onedrive for business we have created multiple document libraries. See the screenshot below (blacked out are the ones we created).
Screenshot of Onedrive for Business "Site Contents"
Using MS flow I want to extract info from some of the Excel sheets in those doc libs. However, when using the wizards, I can only access files in document libraries that are created from a Sharepoint site (mine were apparently created directly in the OnedrivefB environment) or the main document library from OnedrivefB (as shown below; when choosing Onedrive, the File wizard only shows the files in the 'Documents' doc lib as also listed in the previous screenshot. Screenshot from Flow wizard
Elsewhere, I was told I should connect the document libraries we created to a Sharepoint site. But this person couldn't tell me how... Other suggestions are of course welcome as well!
Thanks, J
For completeness:
Step 1 in the wizard, showing sharepoint sites and onedrive for business
Step 2 in the wizard, showing options when choosing for OdfB
Step 3 in the wizard, only showing files from the document library called "Documents" in the first screenshot
A screenshot from one such document library with the Excel I am trying to access
Both OneDrive for Business and Sharepoint sites can be connected to MS Flow. If you are looking for the connection with OneDrive for Business, check the below link for triggers and sample templates
https://us.flow.microsoft.com/en-us/connectors/shared_onedriveforbusiness/onedrive-for-business/
Sharepoint -
https://us.flow.microsoft.com/en-us/connectors/shared_sharepointonline/sharepoint/
EDIT:
To access an Excel file in an OneDrivefB folder, browse and select the excel using file option. It will list all the folders in your OneDrive library.
.Second screenshot which you attached is sharepoint assets. they cant be linked to OneDrive. It can only be linked to sharepoint sites

Embed Excel in a website to edit a locally stored document

Is it possible to embed google excel in my website to edit document stored locally?
My manager asked me if it is possible to integrate the Microsoft office webapp in my own website.
Clients have excel files stored on our website, we want to know if it is possible for them to open the file with a web excel page, edit the file and save the modifications. For now, they use SharePoint so it is easy for them but we intend to use an other platform.
Our client can have all the license we need.
I searched but I didn't find any solution.
I know you should be able to do this with ASP and the .Net Framework. SharePoint uses ASP pages, so you may try to do something simpler.
If you go over the Internet you'll see several solutions because people do this too.
e.g. a thing you can do is to use Open XML API to do this, and it is like reading / modifying a flat file on the server. A restriction is it has to be .xlsx / 2007 format onward.

Move files from Sharepoint to HotFolder

I have emails with excel files attached that go to a Sharepoint site as well as a folder path to that sharepoint site on my desktop. I then take these excel files and drop them into a "Hotfolder" which essentially has a rake task sitting behind it that syncs these excel attachments every few minutes into a DB.
I'm curious if there is any functionality to get the files from the Sharepoint site to drop into that specific "Hotfolder" network file path, without me having to transfer the files myself manually. I am pretty new to Sharepoint functionality, so any ideas would be appreciated..
Thanks.

Copy Selected File in SharePoint To Local Drive

I am trying to copy a selected from from a SharePoint Document List to the servers local drive. But I can not for the life of me find a way to do this within SharePoint 2010 using C# or JavaScript (preferably C#) anywhere. Is this possible? If it is, can anyone provide some pointers that would get me started in the right direction? Thanks!
You can use custom actions to integrate the functionnality to ribbon (see this article).
Once you have added your custom action in the code you can:
If you know a file server relative URL you can get it from the web
SPFile file = YourWebObject.GetFile("FileServerRelativeUrl");
Ones you have your SPFile object you can save it, using .NET IO library, to a disk using
FileStream fileStreamToSave = YourWebObject.OpenBinaryStream();
Than just save it...
IMPORTANT! - You have to give writ access to the folder where you files will be stored.

How to create folders base on external datasource in SharePoint 2010?

My goal is to extend functionality of the current asset tracking system.
Basically I would like to pull list of Clients and related assets from external system into sharepoint 2010.
Then I would like to associate documents with each asset. My first intention is to create a list of folders where each folder would be named respectively.
Tell me, if I am going in the wrong direction.
You can open your document library in explorer view and easly copy your content from external sorce to document liabrary, as windows explorer.
You can reffer the below link for more details
http://msmvps.com/blogs/shane/archive/2006/01/12/80843.aspx

Resources