Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Question
Wednesday, October 25, 2017 11:25 PM
Hi,
I have list url and list id I need to get the list name to get list items using spservices. I have SP 2010 env so cannot use rest api. Please suggest
All replies (10)
Thursday, October 26, 2017 12:34 AM
Here you go
Please remember to click Mark as Answer on the answer if it helps you
Thursday, October 26, 2017 12:35 AM
Here you go
Please remember to click Mark as Answer on the answer if it helps you
Thursday, October 26, 2017 4:45 AM
Sorry I did not mention, I need it using jquery. Not in DVWP or using PS
Thursday, October 26, 2017 5:06 AM
$.ajax({
url: _spPageContextInfo.siteAbsoluteUrl + "/_api/web/lists(guid 'you guid here')",
method: "GET",
headers: { "Accept": "application/json; odata=verbose" },
success: function (data) {
alert(data.d.Title);
},
error: function (data) {
alert("failure");
}
});
Use sharepoint REST API along with jquery as shown above
Note: You should enter guid without curly brackets
Thursday, October 26, 2017 5:34 AM
cannot use restapi its SharePoint 2010
Friday, October 27, 2017 6:29 AM
Hi,
You can use following powershell code to get the list name.
Open the SharePoint2010 Management shell, run the following code in server.
Get-SPSite http://<URL> |Get-SPWeb -Limit ALL | %{$_.Lists} | ?{$_.ID -eq "GUID"} | ft Title
Input your site URL and list GUID.
Thanks,
Carl Zhou
Please remember to mark the replies as answers if they help.
If you have feedback for TechNet Subscriber Support, contact [email protected]
Friday, October 27, 2017 7:16 AM
var oList;
var clientContext = SP.ClientContext.get_current();
oList = clientContext.get_web().get_lists().getById(Guid);
clientContext.load(oList,"Title");
clientContext.executeQueryAsync(onQuerySucceeded,onQueryFailed)
function onQuerySucceeded(sender, args) {
alert(this.oList.get_title());
}
function onQueryFailed(sender, args) {
alert(args.get_message());
}
Use Javascript code to get the title and pass this to SPServices
Friday, November 10, 2017 6:28 AM
Hi,
If the post helps you, you can mark it as answer to help other community members to find the information quickly.
Have a nice day!
Thanks,
Carl Zhou
Please remember to mark the replies as answers if they help.
If you have feedback for TechNet Subscriber Support, contact [email protected]
Friday, June 14, 2019 10:01 PM
Hi Lakshmanan Sethu, The URL has been changed. Below is the update URL.
https://www.enjoysharepoint.com/get-list-name-from-guid-using-powershell-in-sharepoint-2013/
Many Thanks,
Bijay Kumar
EnjoySharePoint.com | SharePointSky.com | TSInfoTechnologies.com
Friday, June 14, 2019 11:36 PM
Hi Spadmin,
Below is the SOAP Call to get SharePoint getlistitems with query that connects to SharePoint 2010 via the list web service calling getlistitems.
<mx:WebService id="SPws" wsdl="{wsdurl}" endpointURI="http://rich-hp/_vti_bin/Lists.asmx" fault="wsdlFault(event)" load="SPws_loadHandler(event)" >
<mx:operation name="GetListItems" fault="GLIFault(event)" result="GLIResult(event)" >
<mx:request xmlns="http://schemas.microsoft.com/sharepoint/soap/" >
<listName>{listid}</listName>
<rowLimit>1000</rowLimit>
</mx:request>
</mx:operation>
</mx:WebService>
Thanks & Regards,
sharath aluri