cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
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
Highlighted
Responsive Resident
Responsive Resident

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
Highlighted
Responsive Resident
Responsive Resident

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
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

Top Solution Authors
Top Kudoed Authors
Users online (8,042)