web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / SharePoint Copy File -...
Power Automate
Unanswered

SharePoint Copy File - wait for it to return 200 status

(0) ShareShare
ReportReport
Posted on by

Hello there,

I have created a manually triggered Flow on SP SitePages.

This flow will copy the file in several different site collections' Sitepages libraries.

I have a big issue here :

My Copy File action returns a Status 202, which is equal to "Request Accepted".

I have to precise that these actions are set in a Apply to each loop.The Concurrency Control of this Loop is set to off, because after that loop, I have to send an email with all the actions done inside. I know performance-wise it is not the best...

 

I would like the next steps to run only when the status returned is 200 (aka OK), with some more info (like ItemID etc..), because I need those in my flow.

 

Here are some screenshots of my flow :

My trigger :

 

 

Flow_WaitForStatus200_01.PNG

 

My Copy file Action :

Flow_WaitForStatus200_02.PNG

The Output of my Copy file action :

Flow_WaitForStatus200_03.PNG

The settings for my Copy file action (yes, I unchecked Asynchronous Pattern, because I wanted to avoid any strange behavior, because I will use what it returns !.. But still does not work.)

Flow_WaitForStatus200_04.PNG

The run after of the next step.

Flow_WaitForStatus200_05.PNG

 

 

Do you know how I could achieve queuing my next actions until the Copy file returns a 200 Status ?

Do I have to do a Do until loop ? but actually, it won't do anything Until i have the right status.

Do you have any idea on how I could improve the performances of this flow ? (Because copying a SitePage from a site to 23 other sites is really taking a long time.)

 

Thanks a lot !

Categories:
I have the same question (0)
  • v-alzhan-msft Profile Picture
    on at

    Hi @Anonymous ,

     

    For your first question, there is no anyt way in microsoft flow could check the return code, so there is no any way for you to achieve queuing my next actions until the Copy file returns a 200 Status in microsoft flow currently.

     

    For your first question, you could take a try with flow before:

    1.png2.png

     

    For your third question, I afraid that there is no any way to improve the performances of this flow now.

     

    Best regards,

    Alice       

     

    Community Support Team _ Alice Zhang
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

  • Community Power Platform Member Profile Picture
    on at

    Hi @v-alzhan-msft ,
    Thanks for your time but your solution won't work :

    the Copy file action does not fail nor timeout. It returns something, a status considered as a success, but which did not do anything :

    a 202 is only saying "Request accepted, we'll work on it".

    So FLow does not see this as a failure. A 400 or 404 is a failure. Not that one.

     

    Do you have any other idea?

     

    Thanks

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 406 Moderator

#3
abm abm Profile Picture

abm abm 245 Most Valuable Professional

Last 30 days Overall leaderboard