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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / transfer sharepoint el...
Power Automate
Answered

transfer sharepoint element to sql after 24 hours.

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hello ,


I apologize for my bad english ...

 

I'm working on a project with an application created with powerapps that feeds a sharepoint list.

I would like to set up a flow that transfers part of the list to a SQL database at Azure SQL DATABASE.

 

eg a user create a data (line) on sharepoint and after 24 hours his line moves in the sql database.

 

I set up moving items between two lists when it is created but not from a time slot.

 

I wish to set it up because I quickly arrive at 2000 lines in the Sharepoint list and therefore the entries are no longer visible in powerapps because there are more than 2000 lines.
Do you think it's a good method?

 

is it possible to set up this flow?


Thanks for your help.

Categories:
I have the same question (0)
  • Gristy Profile Picture
    2,429 on at

    Set up a scheduled flow that runs every 24 hours

    Inside the flow perform your logic i.e. Get Items, Submit to SQL.

     

    What you will need to do is indicate either on the items themselves (i.e. column indicating already synced yes/no) or by storing the last ID that you synced so you can start at last ID + 1 in your Get Items query.

  • v-bacao-msft Profile Picture
    Microsoft Employee on at

     

    Hi @Anonymous ,

     

    You could use Recurrence as a trigger and run Flow once a day.

    Then use Get item to get the items in the list, and use Filter Query to filter the items created the previous day.

    Then add these items to the Database.

    11.PNG

     

    Or you could use Delay action to save the newly created item to Database after a delay.

    12.PNG

     

    Best Regards,

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    @v-bacao-msft  and @Gristy 

     

    thank you for your help I wanted to create the following flow:

     

     when an item  is created


    'crée' is greater than formatdatetime (addHours (utcnow (), - 24), 'yyyy-MM-dd') 

    but the flow tells me an error in the condition

     

    I will do the tests. thank you very much for your help.
     

    FLOW 2.png

  • yashag2255 Profile Picture
    24,769 Super User 2024 Season 1 on at

    Hey @Anonymous 

     

    Can you try updating the expression as 

     

    addHours(utcnow(),-24)

    As the Created attribute of the trigger body wil be of the similar format, you can try by just adding the hours and check if the time comparision. 

     

    BTW, this logic wont work as the condition will never be true as the flow will trigger when a new item is created and there is no point comparing the created time with the past time. 

     

     

    Hope this Helps!

     

    If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

     

     

  • Verified answer
    v-bacao-msft Profile Picture
    Microsoft Employee on at

     

    Hi @Anonymous ,

     

    Please try this expression:

    addHours(utcNow(),-24,'yyyy-MM-dd')

     

    Best Regards,

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    @v-bacao-msft  @yashag2255  @Gristy 

     

    Thanks for your help. My flow works perfectly.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 251 Super User 2026 Season 1

#2
Haque Profile Picture

Haque 239

#3
Expiscornovus Profile Picture

Expiscornovus 220 Most Valuable Professional

Last 30 days Overall leaderboard