cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
ToFj
Advocate II
Advocate II

Error when creating a Sharepoint page from Template

Hello Everyone, 

I am following these two articles trying to create flow that creates a new Sharepoint page from a customized template. 
https://www.c-sharpcorner.com/blogs/automate-modern-sharepoint-page-creation-using-power-automate

https://collab365.community/how-to-add-text-to-any-part-of-a-sharepoint-page-using-power-automate/

 

I am having an issue with my uri when referencing the template and trying to copy it over to a new page. Do any of you have an idea where I might be going wrong? 

 

Would be very happy if someone could help me a bit further along the way. 

Create SP-Page error.JPGCreate SP-page flow script.JPG

1 ACCEPTED SOLUTION

Accepted Solutions
Expiscornovus
Super User
Super User

Also try adding the site name to both urls in the URI field. And also be aware this POST will only create a draft version of the page in your sitepages library.

 

addsitename.png

 

I think you also need to remove the colon character from the page name (your Use Case Title variable). Because that's an invalid character for a page name: https://support.microsoft.com/en-us/office/invalid-file-names-and-file-types-in-onedrive-and-sharepo...

 

 

View solution in original post

3 REPLIES 3
Expiscornovus
Super User
Super User

Hi @ToFj,

 

There is a trailing underscore character after web in your Uri field. Can you remove that one and try again?

trailingunderscorecharacter.png

Expiscornovus
Super User
Super User

Also try adding the site name to both urls in the URI field. And also be aware this POST will only create a draft version of the page in your sitepages library.

 

addsitename.png

 

I think you also need to remove the colon character from the page name (your Use Case Title variable). Because that's an invalid character for a page name: https://support.microsoft.com/en-us/office/invalid-file-names-and-file-types-in-onedrive-and-sharepo...

 

 

ToFj
Advocate II
Advocate II

Thank you for the reply and help @Expiscornovus 

With your suggestions and adding the missing single apostrophe at the end of the first phrase I was able to get it to work. 

 

Yes, I am aware that this won't create the page like I want it in the end. As I understood it I am required to send a few more requests in order to complete the flow. 

 

Thank you for the help. Greatly appreciated

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

New Ideas Forum MPA.jpg

A new place to submit your Ideas for Power Automate

Announcing a new way to share your feedback with the Power Automate Team.

Carousel_PP_768x460_Wave2 (1).png

2022 Release Wave 2 Plan

Power Platform release plan for the 2022 release wave 2 describes all new features releasing from October 2022 through March 2023.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

365 EduCon 768x460.png

Microsoft 365 EduCon

Join us for two optional days of workshops and a 3-day conference, you can choose from over 130 sessions in multiple tracks and 25 workshops.

Users online (3,062)