1

I want to create a flow that automate the creation of lists using a REST API, well i figure out how to do it from the existing templates (like Custom list, Issue Tracking ... etc) using their BaseTemplate number, now i want to create the list from an existing List i already created and customised in my site.

enter image description here

As you know, we can create a list from an existing list in the interface, check below the picture:

enter image description here

Now i bet there is a way to automate this using the REST API, I just don't how or what kind of Information should I get in order to automate this.

Thanks.

2
  • Save the list as a template. and use that template while creating the list in your same flow action. Commented Nov 19, 2019 at 12:39
  • 1
    Okay, i understand your answer, how can i specify in my action the id or something that identify my template list, in other words i can't find specification for this template like the existing ones Commented Nov 19, 2019 at 12:47

1 Answer 1

1

I don't know if it is possible. What you can do is - create a content type with all your required columns. create a list in your actions and then add the content type to the list and make it default content type. Add content type using rest.

Or you can write managed code using Azure functions and call that in your flow. Change content type ordering using c#

1
  • this is the only method i could find, indeed it works. now i just need to change the content type default (change it from "item" to the new assigned content type) Commented Jan 5, 2020 at 10:48

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.