how to find out if a sharepoint list is created by end-user or created as part of site provisioning

2.1k views Asked by At

I would like to find out whether a sharepoint list is created by end-user or created as part of site provisioning.

I want to show all lists created by end user into a dropdown. I could filter on template id = 100 but there are some system generated lists having templateId=100 and they end up in the dropdown list.

1

There are 1 answers

0
Mark Mascolino On

The SPList object does contain a Created property and the containing SPWeb does as well. Note that you won't be able to do a direct comparison because presumably it took many seconds (or even longer) to provision your site but if you did a fuzzy comparison of those two dates you should be able to separate user created vs. system provisioned lists.