cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
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
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
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
Microsoft Ignite

Microsoft Ignite

Join digitally, March 2–4, 2021 to explore new tech that's ready to implement. Experience the keynote in mixed reality through AltspaceVR!

New Super Users

Meet the Power Automate Super Users!

Many congratulations to the Season 1 2021 Flownaut Crew!

Microsoft Ignite

Microsoft Power Platform: 2021 Release Wave 1 Plan

Power Platform release plan for the 2021 release wave 1 describes all new features releasing from April through September 2021.

MPA Community Blog

Power Automate Community Blog

Check out the community blog page where you can find valuable learning material from community and product team members!

Users online (37,400)