Communiquez avec les autres et partagez vos connaissances professionnelles

Inscrivez-vous ou connectez-vous pour rejoindre votre communauté professionnelle.

Suivre

What is the best way to retrieve data from a Sharepoint server?

If you have a stand-alone web application that needs to retrieve some data from a Sharepoint database, for example, pass in a product Id and get back all product details, what would be the best approach?

user-image
Question ajoutée par Hazem Salama , Senior Member of Technical Staff , Verizon Communications
Date de publication: 2013/05/03
Zaid Rabab'a
par Zaid Rabab'a , Software Development Team Leader , Al-Safa Co. Ltd.

I'm not really good at share point i use it for 4 month or less but as i remember, you can use Business connecitivity services check this http://technet.microsoft.com/en-us/sharepoint/ee518675.aspx hope it may help

Ibrahim Khatri
par Ibrahim Khatri , Senior Solutions Architect , Confidential

There are following ways the SharePoint exposes the data out side: 1.
Server Side Object Model (you need to deploy a web service/WCF Service at the front end server of SharePoint Servver which uses server side object model to retrievve the list/library data from the sharepoint site and return the data in XML/your custom entities) 2.
Client Object Model This is also a good approach if your consumer is have .NET frame work 3.5 then this is the valid option 3.
use the SharePoint OOB web services (WCF services/Web Services) Advantages for #1 : cross platform, your custom security to access the service is possible Disadvantage for #2: the current logged in user should have the permission to sharepoint or you have to expose the user name and passwords Advantages for#3: Support REST Services,OOB, but disadvantages of #2 are applicable to this option.
Now, Match the requirement and take the decision.
Hope this will help..

Sudhish Chemmur
par Sudhish Chemmur , Architect - Technology , Cognizant Technology Solutions

if you are using .Net for the stand alone application you have client object model and web service for accessing data from SharePoint.
If the stand alone application is using some other language other than .Net, web service is the only approach.
BCS is used to read data from other data sources into SharePoint and not reading SharePoint data.

Muhammed Effat Ahmed Afifi
par Muhammed Effat Ahmed Afifi , Project Leader [Microsoft Business Unit] , Wipro Arabia Limited

You Can use the BCS (Business connectivity services) in SharePoint to connect to an External data source and retrieve the information.

Mohammad Hijazi
par Mohammad Hijazi , System Architect , Department of Education and Knowledge

Retrieving data from SharePoint DB directly is not recommended, client object model is the best of what you can do

Imran ul Haq
par Imran ul Haq , Senior Backend Developer , King Abdullah City for

It depends upon the version of the .net platform you are developing the application on. If the platform <3.5, then you can use SharePoint dll to get the item. An added advantage here is that the dll gives you the option to convert the SharePoint lists items retrieved into a DataTable which is very useful in case of data binding eg. repeaters, gridviews

You can also use Webservice to get the data in XML format and then parse it according to your requirements.

Get satisfied with the results SharePoint Database Repair software carries out very strong process of recovery in easy and simple way. The entire process of recovery and repairing basically consists of two powerful modules of recovery – Live SQL and Raw File Recovery. Both of them are very powerful and work according to situations differently. With SharePoint Database Repair Tool free trial version, you can check all the important features of this tool along with its performance of this tool at once.

Nachiket Kamat
par Nachiket Kamat , Senior Developer Analyst , Remote Software Solutions

You can use the foll. methods depending upon your requirement:-

Server object model

Managed Client  object model

Javascript object model

REST API

PowersShell

Raju Bisht
par Raju Bisht , Project Lead

There are different ways to get the data based on product ID:

1) CSOM/JSOM Code

2) SSOM(Server Side Object Model ): Deployment needed

 

 

More Questions Like This

Avez-vous besoin d'aide pour créer un CV ayant les mots-clés recherchés par les employeurs?