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 II
Super User II

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 II
Super User II

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 II
Super User II

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

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
MPA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

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

R2 (Green) 768 x 460px.png

Microsoft Dynamics 365 & Power Platform User Professionals

DynamicsCon is a FREE, 4 half-day virtual learning experience for 11,000+ Microsoft Business Application users and professionals.

Top Solution Authors
Users online (2,873)