Uploading File to SharePoint from AWS Lambda Function - sharepoint

I have a lambda function (currently Node.js, but could be turned into .NET Core) that runs on a schedule. I would like to, as part of its work, to upload a file to a SharePoint Online document library. What would be the best way to do this, especially considering authentication?

I would use the Microsoft Graph APIs to upload files into Document Libraries of SharePoint Online
Microsoft Graph: Uploading Files to SharePoint

Related

tooManyRetries from C# SDK. Is Sharepoint overloaded across tenants?

We have a multitenant application where several tenants currently are reporting that downloading a .docx file as pdf from Sharepoint using Graph API is failing with tooManyRetries. This also happens when 'previewing' a Sharepoint file using the /thumbnails call
Is the an overload issue with Sharepoint currently?

Upload file to Google Drive from URL using REST API

It is possible to upload a file from a URL using OneDrive's REST API as documented here. This API accepts the URL we provide and uploads the file from the URL to the intended destination.
I have been trying to find a similar REST API or library for Google Drive, but I couldn't find it yet. Kindly direct me on how to achieve this. I have already set up oAuth and am able to receive access_token and refresh_token. Uploading files from URL is an important functionality in this project.
The project is hosted in Heroku, so I can't download the file to a temporary file and upload that file. It is a NodeJS project.
I'm also looking for this solution. however, what I understand from other blog and articles is you have to download File from provided URL on your server then upload it to google drive.
As of now, i understand this. Will update this if I able to do this.
I think you are unable to use OneDrive's REST API on Google Drive since most such services are self-used only.
Yet, i know a third party online app which enables you upload files to most common cloud drives (Google Drive, OneDrive, Dropbox, Mega, etc.) from URL links. What you have to do is to create an account of this web-based app, add your cloud to its platform and import/export files to your cloud through its service. Maybe it can help you.

Which SDK or API should I use to list and upload files into Office 365 sharepoint document libraries

What is the best way now (and in the near future) to list, upload and download files in a document library in Office 365 Sharepoint? I'm looking for .NET SDK's.
There doesn't seem to be much support documentation available that targets this topic.
There is the OneDrive SDK, the Office 365 Sharepoint SDK and the Graph API, but I can't find good examples. I prefer to make use of SDK's rather than than plain REST calls because I want to make use of the ADAL libraries in .NET for authenticating agains Azure Active Directory.
Any advice or pointing in the right direction would be appreciated.
OneDrive SDK for C#.
I've just done SharePoint site item listing and file upload using the OneDrive SDK for Python, and there is a OneDrive SDK for C#, which should cover the same functionality.
Just make sure to correctly use the service discovery, and select the SharePoint RootSite service.
You can read more about my adventures achieving this (including some gotchas) here.

Call external service from SharePoint Online web part

We are in the process of moving an on-premise SharePoint installation to SharePoint Online. We have a number of existing C# web parts that we need to convert. These web parts currently access some of our on-premise data... we need to get the web parts working on SharePoint Online; however, we're not certain of the best approach.
We've looked at BCS, but it seems that it is geared more towards synchronizing lists of data via basic CRUD methods. For many of our applications, we are not looking to synchronize lists, we are looking more towards action-oriented methods on a service that can be called on-demand as needed by the web part.
We don't believe the call can be client-side, as the users will often be accessing SharePoint Online from workstations that are not joined to our domain, and we don't want the user to have to separately authenticate to our service (i.e. we want our service to trust only the SharePoint Online backend).
Our ideal setup would be to have our C# code for the web part call into our web service (hosted on our domain, authenticating with a service account from the SPO secure store), passing the current username from the SharePoint context, and getting back a response that the web part can then use for its processing.
But as we understand, the web parts in SharePoint Online are sandboxed in such a way that they cannot make external HTTPS calls via HttpWebRequest.
We've searched for how-to examples or documentation related to our use case, and haven't found anything saying it's possible or that it's not possible. Does anybody know if it's possible for a web part to get data in this way? Is there some other direction we should be taking to achieve this?
In SharePoint online, if you are developing a SharePoint hosted app; You will be able to call external endpoints (EPs) after adding these endpoints in the manifest file.
If you haven't added these endpoint to the manifest file, This means you are not permitting the app to call an external EPs.
You don't need BCS in SharePoint online to call external EPs. Here is a sample on how to do this using JavaScript.
https://msdn.microsoft.com/en-us/library/office/fp179895.aspx
Let me know if you have any other questions.

Office Web Apps Server 2013 without SharePoint

I've noticed Microsoft has released a new version of Office Web Apps Server 2013, which is a standalone product now.
I'm looking for an engine that I can convert Word/Excel and PowerPoint documents into web-friendly versions (HTML5) for an application I've built that uploads these documents to S3 and I thought Office Web Apps Server 2013 standalone would work.
I don't want to use Google Docs, but rather use a solution that I'm hosting myself.
Reading the Office Web Apps Server documentation, it doesn't specify whether or not I need to have a SharePoint server license. I've tried deploying Office Web Apps Server on a Windows 2012 server on Microsoft Azure, and while the software installs, it is unable to render any documents that I'm pointing to it from an external URL (a publicly accessible S3 bucket).
Does anyone know the particular requirements of Office Web Apps Server 2013 to work properly? The website does state that it can be used to view documents from an external URL which is how I'm trying to use it. But since its a new product, there isn't that much information I was able to find on it other than Microsoft's deployment instructions.

Resources