I am adding custom lists programmaticaly from a custom template. I check to see if the custom list template exists, and if not I create the list template by creating a list and then saving it as a template using the SPList.SaveAsTemplate() method. However, during the same timer job, I try to get the list template, but it doesn't show in the SPSite.GetCustomListTemplates() method. It does however show in the UI under the List Template Gallery. Any idea as to why it would show in the UI but not be returned in the method call?
Custom List Template is not being pulled by SPSite.GetCustomListTemplates()
1.7k Views Asked by Chad VanHorn At
1
There are 1 best solutions below
Related Questions in SHAREPOINT-2010
- how to empty the recycle bin in SharePoint using PowerShell?
- Splitting Child forest from Main forest will impact SharePoint 2013 or 2016 On-premises environment?
- SharePoint Upload Files To Document Library Using Rest API
- Choice radio buttons not updating the sharepoint list
- Is there any option to get this issue resolved as I can only think of OR statement in Edit conditional Formula on sharepoint?
- What is RoleAssignment, RoleDefinition, RoleBinding in Sharepoint On-premise? How to remove a user from the permission list at site level?
- Workflow Error Occurred in SharePoint site
- How to visualize "list progress" in Sharepoint/Teams
- QuickSight Paginated Report Publish to Email Endpoints
- SharePoint CAML Query to Filter Data By Date
- Sharepoint workflow verification
- Way to find modern site is public or private using CSOM
- sharepoint jquery for sum of two column
- Create a flow to move all documents from recycle bin to another library
- How to dowload many files or folders from sharepoint
Related Questions in SHAREPOINT-LISTTEMPLATE
- PnP PowerShell - Can we get List content in List template xml?
- SharePoint 2010 - How can we get list template name from the list if the list is created from ListTemplate
- sharepoint 2013 create document library using List Template C#
- how to create a list template in SharePoint online using VS 2013
- Create Edit Control Block (ECB) on View with JSLink in Sharepoint 2013
- How to create SPList from custom template using SharePoint 2013 REST API?
- Can't create Sharepoint List from imported list template
- Is there any way of setting a value for datetime field in ListInstance
- Save list as list template from powershell
- filter out of the box list templates
- Packaging list to be deployed at client
- add html value when creating sharepoint list instance
- Custom List Template is not being pulled by SPSite.GetCustomListTemplates()
- how can I add event receiver only for list with specyfic template id
- How do I make the "change order" button appear in SharePoint 2010?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Read my answer to this question. With that you should get a result from GetCustomListTemplates instead of just an empty list.