SharePoint Copy Wiki Page - embedded scripts stripped from output

Copper Contributor

I'm trying to replace a SharePoint 2010 Workflow that copied a SharePoint Wiki Page file from one library to another.

 

The source file contains text, a content editor web part (that pulls in an html file) and an embedded JavaScript code snippet.

 

The original 2010 workflow copies the file with no trouble.  The Power Automate flow I created copies the file, but strips out the content editor web part and the embedded code snippet.

 

I'm using a manually triggered flow and just the SharePoint "Copy file" component.

 

thoughts on how to get the intact file?

3 Replies
I posted this question in the Power Automate community too, but got no responses there (either).

Anyone have thoughts on this problem?

Is this a scary question or has no one else tried to use power automate to copy a SharePoint Wiki page?