Tuesday, April 16, 2013

Sharepoint LIst Name in REST Services.



In SharePoint 2010 , if you are creating a list with special characters in its name, it not through any error , but it will trim the characters excluding space(%20) and _. 

IF you are using rest services dynamically, it will be very help full to generate the list name.
Event the ctx object created by OOB can be leveraged to find the name of the list by using the following parameters.

Please find the below example
If I am creating a list with name sam~!@#$%^&*()_+=-` the list name in the url will be sam_ and the same can be used in REST services to pull the data from  SharePoint .

No comments: