1

I've created a custom list template and now I'm trying to create a new list with this template using a SharePoint workflow.

I thought using SharePoint REST API could be the solution, but I can't find the way to create a new list using this template.

Is there a SharePoint web services to use to create a new list with a previously created template?

3

Unfortunately, you can't create a list based on a template via REST API or SharePoint Workflow.

But, you can create a list based on BaseTemplateID via SharePoint Designer by using this endpoint

http://siteURL/_api/web/lists  

Where BaseTemplate of Custom List is 100, the Document library is 101.

Check the details steps at How To Create A List Using HTTP Web Service In SharePoint Designer 2013 Workflow

  • Thanks! Do you think a solutions could be to create the list and then create fields following this post: sharepoint.stackexchange.com/a/142562/20605 ? – Pepozzo Oct 26 '17 at 13:10
  • I would suggest this solution, but I thought you need to create a list from the template that has content! I think it is a suitable solution – Mohamed El-Qassas MVP Oct 26 '17 at 13:20
  • No, I don't need the content, just the structure (custom columns) . So I still can't create a list from a template via REST, but I have to create the list with basics columns and then create each single column, is that correct? – Pepozzo Oct 26 '17 at 14:17
  • 1
    One thing that I think you should care about it that is When you will run this workflow? on item added or changed? your theory is correct but you should care about the workflow event that will depend on your business requirements! – Mohamed El-Qassas MVP Oct 26 '17 at 17:27
  • 1
    I'm running this workflow only when new item is created. ;) – Pepozzo Oct 27 '17 at 10:05

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.