This is how you create it - and call it from your browser:
http://{0}/_vti_bin/owssvr.dll?Cmd=Display&List={1}&XMLDATA=TRUE
{0} – The URL to your site. This could be the root web or a child site.
{1} – The GUID for your list.
Example:
- GUID for my list: {F24D7439-1A5F-41E1-9E0D-2BD39151C33F}
- http://sharepoint/MyList/_vti_bin/owssvr.dll?Cmd=Display&List=%7bF24D7439-1A5F-41E1-9E0D-2BD39151C33F%7d&XMLDATA=TRUE
- GUID for my specific view: {968A1E8C-25E6-4801-93D9-412E85B3ABFE}
- http://sharepoint/MyList /_vti_bin/owssvr.dll?Cmd=Display&List=%7bF24D7439-1A5F-41E1-9E0D-2BD39151C33F%7d&View=%7b968A1E8C-25E6-4801-93D9-412E85B3ABFE%7d&XMLDATA=TRUE
There are many different ways of achieving this. An alternative is the business connectivity Services: http://msdn.microsoft.com/de-de/library/ee557658.aspx
or reading directly from the SQL database: http://www.codeproject.com/Articles/14232/Useful-SQL-Queries-to-Analyze-and-Monitor-SharePoi
This should be done with caution - and only if it is at all necessary (reasons: performance, licence violation, instable primary key).
EDIT: this is another way of achieving what I was looking for: http://msdn.microsoft.com/de-de/library/ff521580.aspx
The MSDN article descirbes how you read a value of a field in a Sharepoint list using C#.
No comments:
Post a Comment