cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
dogemaster
Level: Powered On

Pages isn't published after being copied from one SP site to another SP site

Hello Cat Happy

 

I'm building a Flow that copies multiple pages from one SharePoint site to another SharePoint site, and the pages are published in SP site no. 1, but after they have been copied to SP site no. 2 all the pages are in "draft" mode (not published).

 

Is there a way to publish all the pages automatically using Flow? After I have copied them to the site. 

 

The first action is "List folder" (just in norwegian)

 

image.pngPage in draft mode

flow.pngmy Flow

 

Appreciate any thoughts and answers!

3 REPLIES 3
dogemaster
Level: Powered On

Re: Pages isn't published after being copied from one SP site to another SP site

I noticed if I turned of version control in SP site no. 1 the pages was automatically published in SP site no. 2 (when I tried copying the pages again).

But this is not an optimal solution.

 

The library doesn't have content approval on btw. 

Community Support Team
Community Support Team

Re: Pages isn't published after being copied from one SP site to another SP site

Hi @dogemaster ,

 

I have made some tests on my side, I found that if the page has already been published on the original site, it will also be Published on the destination site once copied.

 

Have you published the page on original site?

 

If no, the page will be checked out and cannot be got via flow.

 

In addition, I have seen an idea on Allow to check in, check out and publish files in a SharePoint library which is marked as Planned. Please check and vote it at here:

https://powerusers.microsoft.com/t5/Flow-Ideas/Allow-to-check-in-check-out-and-publish-files-in-a-Sh...

 

Best regards,

Mabel

 

Community Support Team _ Mabel Mao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
dogemaster
Level: Powered On

Re: Pages isn't published after being copied from one SP site to another SP site

hello @v-yamao-msft 

I made two new SharePoint sites with 5 pages in one of them, published the pages and then copied to sp. site no. 2. The pages in sp. site no. 2 says "draft saved" and are not published. Is there a setting that changes this?

Can you please share your test flow? 

 

Helpful resources

Announcements
firstImage

Power Platform Online Conference

Join us for the first ever Power Platform Online Conference!

firstImage

Incoming: New and improved badges!

Look out for new contribution recognition badges coming SOON!

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

Top Solution Authors
Top Kudoed Authors
Users online (5,173)