cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
CCentofanti
Frequent Visitor

Pulling HTML from a .HTM page

I have multiple .htm files sitting in a SharePoint library. I want to pull the HTML content from these pages. Is this possible? I can move the files to OneDrive if necessary.

 

My goal is to take this HTML content and put it in the Wiki Content value of a SharePoint Wiki page.

1 ACCEPTED SOLUTION

Accepted Solutions
Amanthaper
Super User
Super User

Hi @CCentofanti 

Although I have not done this I'm fairly confident it can be done.

The SharePoint "Get File Content SP" action can extract HTML from a .htm page in an SP site and make it available for other actions within the flow. Quick proof here.

Amanthaper_0-1603221703565.png

You can then use the Send an HTTP request to SharePoint action to update page content using the SharePoint REST API using an example done here https://sharepoint.stackexchange.com/questions/67900/updating-a-wiki-page-with-the-rest-api

Amanthaper_1-1603221732022.png

Again, not proved but the fact that the output in Flow is pure HTML + HTTP/REST action in Flow makes it very possible. I might give it a shot later.

Hope this helps,

Aman

------------------------------------------------------------------------------------------------------
If my post helps you with your problem or answers your question, please mark it Solved or Answered. This helps anyone with similar challenges. If you like my response, please give it a Thumbs Up.
------------------------------------------------------------------------------------------------------

 

 

 

View solution in original post

1 REPLY 1
Amanthaper
Super User
Super User

Hi @CCentofanti 

Although I have not done this I'm fairly confident it can be done.

The SharePoint "Get File Content SP" action can extract HTML from a .htm page in an SP site and make it available for other actions within the flow. Quick proof here.

Amanthaper_0-1603221703565.png

You can then use the Send an HTTP request to SharePoint action to update page content using the SharePoint REST API using an example done here https://sharepoint.stackexchange.com/questions/67900/updating-a-wiki-page-with-the-rest-api

Amanthaper_1-1603221732022.png

Again, not proved but the fact that the output in Flow is pure HTML + HTTP/REST action in Flow makes it very possible. I might give it a shot later.

Hope this helps,

Aman

------------------------------------------------------------------------------------------------------
If my post helps you with your problem or answers your question, please mark it Solved or Answered. This helps anyone with similar challenges. If you like my response, please give it a Thumbs Up.
------------------------------------------------------------------------------------------------------

 

 

 

View solution in original post

Helpful resources

Announcements
Process Advisor

Introducing Process Advisor

Check out the new Process Advisor community forum board!

MPA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

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.

Top Solution Authors
Top Kudoed Authors
Users online (2,242)