I found this documentation which goes over how to add a list, but it doesn't seem possible to specify a GUID if you use this method.

Is there any way to create a list and specify the GUID? I am trying to recreate several lists on a different server and if they do not have the same GUIDs other functionality may break.

2 Answers 2


Sadly, you can't. You probably make it work by using the title of the list to get its instance instead of its internal GUID.

  • @Abe Miessler @Sébastien Levert, I think it is better to use url of the list's AllItems.aspx page, and use SPWeb.GetListFromUrl, because list Title can be easily changed by user through the GUI. Commented May 19, 2011 at 4:31
  • You are right. In fact, I'm using a custom extension methods that allow me to get a list instance from its RootFolder name. So it is by its URL that I'm getting it. Working in a bilingual environment (French and English), I can't refer to a list name, because they usually have 2 of them. Commented May 19, 2011 at 11:58

Unfortunately, it is not possible to assign your own GUID when you create a list.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.