SOLVED

Determine which Page Template is being used for a SharePoint Online page

%3CLINGO-SUB%20id%3D%22lingo-sub-2062803%22%20slang%3D%22en-US%22%3EDetermine%20which%20Page%20Template%20is%20being%20used%20for%20a%20SharePoint%20Online%20page%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2062803%22%20slang%3D%22en-US%22%3E%3CP%3EHello.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20am%20looking%20for%20a%20way%20to%20list%20out%20page%20templates%20(%20can%20be%20Out%20of%20the%20box%20or%20custom)%20that%20are%20used%20for%20creating%20pages%20in%20a%20SharePoint%20Online%20site.%20A%20Template%20-%20pages%20based%20on%20template%20mapping.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIs%20there%20any%20property%20that%20is%20saved%20and%20perhaps%20exposed%20when%20a%20page%20is%20created%20using%20an%20existing%20template%3F%20Flow%2C%20PowerShell%20anyway%20to%20get%20that%20details%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%20in%20advance.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2062803%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EAdmin%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EDeveloper%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EPowerShell%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ESharePoint%20Online%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ESharePoint%20Server%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2064240%22%20slang%3D%22en-US%22%3ERe%3A%20Determine%20which%20Page%20Template%20is%20being%20used%20for%20a%20SharePoint%20Online%20page%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2064240%22%20slang%3D%22en-US%22%3EOnce%20the%20page%20is%20created%20from%20a%20template%2C%20an%20editor%20can%20change%20anything%20about%20the%20page%20so%20I%20don%E2%80%99t%20know%20how%20reliable%20that%20would%20be.%20You%20could%2C%20however%2C%20add%20a%20metadata%20column%20to%20the%20pages%20library%20with%20values%20representing%20your%20template%20names.%20You%20can%20save%20each%20template%20with%20the%20value%20pre-set%20for%20that%20template.%20An%20editor%20could%20also%20change%20the%20label%2C%20but%20they%20would%20have%20to%20go%20to%20Page%20Details%20to%20do%20so%2C%20so%20it%20could%20be%20a%20simple%20but%20slightly%20more%20reliable%20way%20to%20gather%20this%20type%20of%20information.%3C%2FLINGO-BODY%3E
Occasional Contributor

Hello. 

 

I am looking for a way to list out page templates ( can be Out of the box or custom) that are used for creating pages in a SharePoint Online site. A Template - pages based on template mapping. 

 

Is there any property that is saved and perhaps exposed when a page is created using an existing template? Flow, PowerShell anyway to get that details?

 

Thanks in advance.

1 Reply
best response confirmed by Isha Kapoor (Occasional Contributor)
Solution
Once the page is created from a template, an editor can change anything about the page so I don’t know how reliable that would be. You could, however, add a metadata column to the pages library with values representing your template names. You can save each template with the value pre-set for that template. An editor could also change the label, but they would have to go to Page Details to do so, so it could be a simple but slightly more reliable way to gather this type of information.