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
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 (844)