Exporting SharePoint data to external PHP script

General Tech Bugs & Fixes 2 years ago

0 2 0 0 0 tuteeHUB earn credit +10 pts

5 Star Rating 1 Rating

Posted on 16 Aug 2022, this text provides information on Bugs & Fixes related to General Tech. Please note that while accuracy is prioritized, the data presented might not be entirely correct or up-to-date. This information is offered for general knowledge and informational purposes only, and should not be considered as a substitute for professional advice.

Take Quiz To Earn Credits!

Turn Your Knowledge into Earnings.

tuteehub_quiz

Answers (2)

Post Answer
profilepic.png
manpreet Tuteehub forum best answer Best Answer 2 years ago

My client has his intranet website running as a SharePoint 2010 site, consisting of about 40 lists making the different categories of news.

What would be the easiest way for me to fetch this data (including the contents html-formatting) to an external solution that's written in PHP?

The fetching/exporting must happen automatically. Either every time changes are made to one of the lists, or at a timed interval (i.e. every hour).

I was looking into the built-in RSS-feed option of SharePoint 2010. Will the RSS-fields contain the HTML-formatting as well? Or is there a smarter way to handle this export?

profilepic.png
manpreet 2 years ago

If you're looking for list data, you can fire off a curl request to one of SharePoint's list REST services, and parse the results. Should be pretty simple. There's also a full set of SOAP web services, but those have been deprecated in 2013, so I'd argue that developing a solution using REST is likely more future proof. You could start here for a simple introduction to REST. Once you understand the concept and what comes back just open a curl connection in PHP and parse the dataset for the element(s) you need.


0 views   0 shares

No matter what stage you're at in your education or career, TuteeHub will help you reach the next level that you're aiming for. Simply,Choose a subject/topic and get started in self-paced practice sessions to improve your knowledge and scores.