1

can I provision a list instance in SharePoint 2013 that has following configuration:

Name:"MyCustomList"
Title:"My Custom List"
Url:"Lists/List1"

Is this possible? I tried just changing the URL attribute of a list, but then I got multiple errors of SharePoint not finding things. So is this even possible? I know I could use C#, but a purely declarative approach would be much cleaner.

0

Yes it possible, in the Url you need to specify the site-relative url.

Try it as below:

<ListInstance Title="My Custom List"
              OnQuickLaunch="TRUE"
              TemplateType="100"                    
              Url="Lists/List1"
              Description="MyCustomList desciption">
</ListInstance>

Reference - List Instance

FYI - Lists don't have internal name or name, they only have Title, Description(optional), URL(rootfolder) and TemplateType (like custom list, doc lib, calendar etc) . So, yes it's perfectly valid for title and URL to be different.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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