Sep 23 2019 03:18 AM
I have created a website template stored in the folder templates in library website pages in order create news based on this template.
Via New > page I can select the template manually.
In order to have an easy handling for users I want to create a button or link (e.g. in Teams) to create a new news post based on this dedicated template directly. How can I achieve that?
Best regards
Stefan
Sep 24 2019 02:05 AM
@Stefan Gille Why not create a bot with a button? https://docs.microsoft.com/en-us/microsoftteams/platform/concepts/bots/bots-create
Sep 24 2019 04:04 AM
Thank you for your reply. The bot is a solution for the button, but I still struggle creating a SharePoint page based on a template.
My post was a bit misleading, I believe. I did not create website templates but templates for web pages stored in library website pages.
How can I create a webpage with a dedicated template without user's intervention/choice in between?
Thank you and best regards
Stefan
Sep 25 2019 02:05 AM
@Stefan Gille you can create if you are using Publishing page https://blogs.msdn.microsoft.com/sridhara/2008/06/21/create-and-publish-web-pages-in-publishing-shar... and also you can set PageLayout
Are you using Modern pages then we have to use PnP I guess?
Sep 25 2019 02:21 AM
Sep 25 2019 02:29 AM
@Stefan Gille sorry cannot tell exactly how to do but modern pages can be created programatically and a page layout can be decided, a very detailed explanation on what can be done or not
Sep 30 2019 12:22 AM
SolutionThis guidance from Daniel Estelius helped me a lot to create a SharePoint webpage via Flow based on a template.
http://www.sites.se/2018/08/sharepoint-modern-pages-microsoft-flow/
For the trigger I decided to use a Microsoft Form embedded in Teams. This also allows to ask you user for some specific information for the creation of the page.
But I will check the creation of a bot for future usage as well.
Thank you for your support.
Best regards
Stefan
Sep 30 2019 12:53 AM
@Stefan Gille Glad that you could solve the problem
Sep 30 2019 12:22 AM
SolutionThis guidance from Daniel Estelius helped me a lot to create a SharePoint webpage via Flow based on a template.
http://www.sites.se/2018/08/sharepoint-modern-pages-microsoft-flow/
For the trigger I decided to use a Microsoft Form embedded in Teams. This also allows to ask you user for some specific information for the creation of the page.
But I will check the creation of a bot for future usage as well.
Thank you for your support.
Best regards
Stefan