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 / delete row after 24 ho...
Power Automate
Unanswered

delete row after 24 hours from sql server

(0) ShareShare
ReportReport
Posted on by 253

Hi,

 

I am trying to make a simple flow to delete a row after 24 hours since it was created from a SQL server. I can find a lot of templates connected to SQL servers but I cannot seem to find a way to add a step to call the sql server. 

Any suggestions? 

 

Cheers.

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

    Hi Afernando,

     

    I guess that you want to trigger your flow by “when a row is inserted in SQL server”. But it seems that there is no trigger about SQL server can be used currently.

     

    If I understand you correctly, I would suggest you vote this related idea at here:
    https://powerusers.microsoft.com/t5/Flow-Ideas/Trigger-based-on-INSERT-A-ROW/idi-p/3175

     

    Thanks for your feedback. I would also report and collect this from my side.

     

    Best regards,
    Mabel Mao

  • abm abm Profile Picture
    32,865 Most Valuable Professional on at

    Hi @afernando,

     

    Set a DateTime created field in your SQL table.

     

    Add a recurrence flow, set the frequency to 'Day' and interval to '1'. User the SQL 'Get Rows' template and check the DateTime against todays date. If date is more than a day then use the Delete Row template to delete the record.

     

    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 525 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 324 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard