Create Page Template

How to promote an existing page as a (draft) template on a SharePoint Online site using a Power Automate flow.

URI

Headers

Body

Not applicable

Screenshot with example

Sample data
ID – 216

createpagetemplate

Copy/paste example

Resources

Add-PnPPage code

That’s it, Happy testing!

You may also like...

1 Response

  1. Mike Park says:

    Awesome blog Dennis and very useful, I appreciate the great content!
    I’m trying to follow this one and struggling to get the page ID’s from ‘Sites Pages’ , could you expand please?

    My approach (I’m putting a provisioning flow together), is to copy the templates folder in our root site, to ‘SitesPages/Temp’, I then aim to use your method to save as a template and then publish, followed by deleting the temp folder.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.