Question

I need to upload data from excel to Sharepoint list in SharePoint online site.

I can extract data from excel but how can i connect to the Sharepoint online site and upload the data progrmatically from a console exe.

Kindly advice.

Était-ce utile?

La solution

finally I succeeded using SSIS package.

Its easiest way to push and retrieve the data from SharePoint online site.

Download, SharePoint List adapters from below link and install this integration adapter with visual studio BI.

https://sqlsrvintegrationsrv.codeplex.com/releases/view/82369

It provides SharePoint List source and destination tool in the source section of the tool.

Just configure the source and destination with corresponding URL, then the data can be imported or exported in seconds.

Autres conseils

You can do it with SharePoint client object model 2013, you can download the SDK from here

As how to insert the excel data into SharePoint online list, this blog post has some code snippet to do it, I did tested it, but I think its logic is correct, you may adjust some parts to fit your needs, also, the code refers to the SharePoint client object model 2010, and current version of SharePoint online is 2013, so there could be some differences.

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top