Data Lake (SharePoint)
Using a SharePoint site to store JSON data
Most companies will have a Office 365 subscription that comes with SharePoint, this is an ideal place to store data that you want to keep private for the company.
Quick Demo
Below is a quick demo how to write and read data from a SharePoint drive
spdl = require('spdl.js') // import the spdl module
spdl.siteName = 'XLConnectDataLake' // put target SharePoint here (see below)
// create some data
author = {
firstName : 'John',
lastName : 'Doe',
dob : '2001-01-01',
books : [
'The Care And Feeding Of Cats',
'How To Survive The City'
]
}
// write it to the data lake
spdl.write('authors/John-Doe.json', author)
// read it back into a veriable
authorCopy = spdl.read('authors/John-Doe.json')
As you can see there is very little 'technical friction' to use the SharePoint Data Lake, you don't have to define a database and a table before you can store data and there are no insert/ update/ delete statements, every file is defined by its path and you can just throw it in as is.
Setting up your SharePoint Site
The XLConnectDataLake name above is a SharePoint site name. Below is how you can find a SharePoint you have access to.
This will give you a list of SharePoint sites available

Pick one an assign it to the module:
Do this at the top of your code it will remember this for every call
Some SharePoint sites will have multiple drives, in which case it will default to the 'Documents' drive. If you want to be specific you can also point to a specific drive:
Picking a Drive (Optional)
Last updated