AnsweredAssumed Answered

Web request to get list GUID

Question asked by willyhilly on Oct 27, 2015
Latest reply on Oct 27, 2015 by willyhilly



I am trying to get a list GUID using the Call Web Service using the name of the list.


has anyone successfully done this?


This is so I can query multiple lists using a variable in a CAML query.


Basically I am querying all lists on a site that contain items matching a certain metadata criteria and then export to a CSV file.


If i manually enter the list name as below it works, but then I would need to manually add a branch for every list, there are over 30.


So I have a list containing the names of the lists, i would loop though this list, querying the "_vti_bin/Lists.asmx" using the list name, returning the xml and giving the GUID of the list so then I can query it.