This project has moved and is read-only. For the latest updates, please go here.




Certified for SharePoint 2007 Certified for SharePoint 2010


This utility function, which is also publicly available, returns the current list's GUID *if* called in the context of a list, meaning that the URL is within the list, like /DocLib or /Lists/ListName.




var thisList = $().SPServices.SPListNameFromUrl();

Available Options

Option to allow passing in a URL to the function rather than simply picking up the current context. This will help where custom list forms are stored outside the list context.


The current list's GUID.

Last edited Oct 10, 2012 at 4:41 AM by sympmarc, version 6


ChrisRomp Dec 6, 2013 at 7:30 PM 
Ah nevermind. I see you mentioned elsewhere that you can often use the ID in place of parameters that require a name.

ChrisRomp Dec 6, 2013 at 6:58 PM 
Just wondering, why is this called "ListNameFromUrl" when it returns the Guid, not the list name? Should it be ListIdFromUrl?