Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
var directoryDataSourcesFiles = Directory.GetFiles(uploadReportFolderPath + "\\" + Constants.DirectoryFolder.DataSources);
var directoryDatasetFiles = Directory.GetFiles(uploadReportFolderPath + "\\" + Constants.DirectoryFolder.Datasets);
var directoryReportFiles = Directory.GetFiles(uploadReportFolderPath + "\\" + Constants.DirectoryFolder.Reports);
using (SPSite siteColl = new SPSite(dashboardWebUrl))
using (SPWeb site = siteColl.OpenWeb())
IList<DataSourceFile> dataSourceFiles = UploadAndConfigureDataSourceFiles(site, directoryDataSourcesFiles);
IList<DatasetFile> dataSetFiles = UploadAndConfigureDatasetFiles(dataSourceFiles, directoryDatasetFiles);
IList<ReportFile> reportFiles = UploadAndConfigureReportFiles(site, directoryReportFiles, dataSetFiles);
PublishFiles(dataSourceFiles, dataSetFiles, reportFiles);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.