Button to create new page / open new page menu

%3CLINGO-SUB%20id%3D%22lingo-sub-1468168%22%20slang%3D%22en-US%22%3EButton%20to%20create%20new%20page%20%2F%20open%20new%20page%20menu%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1468168%22%20slang%3D%22en-US%22%3E%3CP%3EI%20am%20looking%20for%20a%20way%20to%20either%20open%20the%20new%20page%20menu%20at%20the%20'news%20post'%20pane%2C%20or%20create%20a%20new%20news%20post%20page%20(or%20page%20of%20a%20certain%20template)%20completely%2C%20by%20the%20click%20of%20a%20button.%20This%20is%20with%20a%20view%20to%20helping%20less%20technical%20members%20of%20staff%20create%20pages%20to%20use%20it%20as%20blog%20functionality.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIs%20there%20a%20URL%20that%20can%20be%20obtained%20for%20a%20new%20page%20that%20can%20be%20assigned%20to%20a%20button%20for%20example%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1468168%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3ESharePoint%20Online%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1468394%22%20slang%3D%22en-US%22%3ERe%3A%20Button%20to%20create%20new%20page%20%2F%20open%20new%20page%20menu%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1468394%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F191213%22%20target%3D%22_blank%22%3E%40Mark%20Whitfield%3C%2FA%3EYou%20can%20use%20something%20like%20this%2C%20but%20then%20it%20creates%20with%20default%20template.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Ehttps%3A%2F%2F%3CFONT%20color%3D%22%23FF0000%22%3E%3CSTRONG%3Eyoutenant%3C%2FSTRONG%3E%3C%2FFONT%3E.sharepoint.com%2Fsites%2F%3CFONT%20color%3D%22%23FF0000%22%3E%3CSTRONG%3EsiteName%3C%2FSTRONG%3E%3C%2FFONT%3E%2F_layouts%2F15%2FCreateSitePage.aspx%3Fsource%3D%252Fsites%252F%3CFONT%20color%3D%22%23FF0000%22%3E%3CSTRONG%3EsiteName%3C%2FSTRONG%3E%3C%2FFONT%3E%26amp%3BpromotedState%3D1%26amp%3BMode%3DEdit%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%2C%3CBR%20%2F%3EVik%3CBR%20%2F%3EIf%20this%20post%20helps%2C%20then%20please%20consider%20Accept%20it%20as%20the%20solution%20to%20help%20the%20other%20members%20find%20it%20more%20quickly.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1469232%22%20slang%3D%22en-US%22%3ERe%3A%20Button%20to%20create%20new%20page%20%2F%20open%20new%20page%20menu%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1469232%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F394813%22%20target%3D%22_blank%22%3E%40Vikram_Samal%3C%2FA%3E%26nbsp%3BHi%20Vikram%2C%20that%20is%20along%20the%20lines%20of%20what%20I%20am%20looking%20for%2C%20however%20I%20am%20trying%20to%20do%20this%20but%20to%20create%20a%20new%20page%20using%20a%20template%2C%20rather%20than%20the%20default.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EDo%20you%20know%20if%20this%20is%20achievable.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1472203%22%20slang%3D%22en-US%22%3ERe%3A%20Button%20to%20create%20new%20page%20%2F%20open%20new%20page%20menu%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1472203%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F191213%22%20target%3D%22_blank%22%3E%40Mark%20Whitfield%3C%2FA%3EI%20wish%20i%20could%20have%20anything%20more%20as%20I%20still%20looking%20for%20some%20better%20solution%20and%20checking%20in%20fiddler%20if%20I%20can%20find%20any%20other%20details.%20I%20will%20keep%20you%20posted%20on%20this.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%3C%2FP%3E%3CP%3EVik%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2179352%22%20slang%3D%22en-US%22%3ERe%3A%20Button%20to%20create%20new%20page%20%2F%20open%20new%20page%20menu%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2179352%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F191213%22%20target%3D%22_blank%22%3E%40Mark%20Whitfield%3C%2FA%3E%26nbsp%3BThis%20would%20be%20so%20useful!%20Did%20anyone%20ever%20find%20a%20way%20to%20do%20it%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E
Occasional Contributor

I am looking for a way to either open the new page menu at the 'news post' pane, or create a new news post page (or page of a certain template) completely, by the click of a button. This is with a view to helping less technical members of staff create pages to use it as blog functionality. 

 

Is there a URL that can be obtained for a new page that can be assigned to a button for example?

5 Replies

@Mark WhitfieldYou can use something like this, but then it creates with default template.

 

https://youtenant.sharepoint.com/sites/siteName/_layouts/15/CreateSitePage.aspx?source=%2Fsites%2FsiteName&promotedState=1&Mode=Edit

 

Thanks,
Vik
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

@Vikram_Samal Hi Vikram, that is along the lines of what I am looking for, however I am trying to do this but to create a new page using a template, rather than the default.

 

Do you know if this is achievable.

@Mark WhitfieldI wish i could have anything more as I still looking for some better solution and checking in fiddler if I can find any other details. I will keep you posted on this.

 

Thanks

Vik

@Mark Whitfield This would be so useful! Did anyone ever find a way to do it?

@Mark Whitfield 

Hello, I ended up with a similar situation and ended up using power apps with a power flow to create the buttons.

The first difficulty was the call to create a page from a template is a post request.
That ruled out a simple redirect.

 

In powerapps you can create a button with a function like this 

 

 

Set(flowResponse,'Http->SendanHTTPrequesttoSharePoint'.Run("25"))

; Launch(flowResponse.url);

 

SendanHTTPrequesttoSharepoint is the flow the .Run("25") is the page number of the template i want to use.

To get the pages number I used chromes debug to watch the network call for (CopyWithConfiguration) that has the page number in the request. 

 

 

In power automate you can use the SharePint api object to  create the page :

wchaplin_1-1650998248980.png

 

The whole flow looks like this :

wchaplin_2-1650998283331.png

 

The URL is the link back to your new page that powerapps will Launch.

 

Hope this helps. 

 

PS: I also believe this is automatable with the sharepoint api to automatically grab the templates you want but this should get you started.

 

Heres a sample of the result with 2 button to create pages : 

wchaplin_3-1650998851601.png