cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Post Partisan
Post Partisan

Delete ALL records in a sql sever table from Powerapps

I need to 

Delete ALL records in a sql sever table from PowerApps.

I CAN NOT use  Flow at this time.

table name is  "t_sst_BrandMasterTest"

 

However, I could use where "Supplier_Name" is not null ?

 

Thanks

Dave

 

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Super User II
Super User II

Re: Delete ALL records in a sql sever table from Powerapps

Depending on the record volume in the table, I would recommend that you offload this bulk deletion to the SQL server.
The PowerApp cannot invoke a stored procedure (SPROC) directly, but you can create a Power Automate flow and call that from your canvas PowerApp.

https://docs.microsoft.com/en-us/connectors/sql/

Otherwise, any code you write in the app will require deleting row-by-row, which will inevitably be a long running process and/or have delegation issues.

View solution in original post

3 REPLIES 3
Highlighted
Super User II
Super User II

Re: Delete ALL records in a sql sever table from Powerapps

Depending on the record volume in the table, I would recommend that you offload this bulk deletion to the SQL server.
The PowerApp cannot invoke a stored procedure (SPROC) directly, but you can create a Power Automate flow and call that from your canvas PowerApp.

https://docs.microsoft.com/en-us/connectors/sql/

Otherwise, any code you write in the app will require deleting row-by-row, which will inevitably be a long running process and/or have delegation issues.

View solution in original post

Highlighted
Post Partisan
Post Partisan

Re: Delete ALL records in a sql sever table from Powerapps

as I stated, I cant use Flow.

 

I used this:

Remove('[dbo].[t_sst_BrandMasterTest]',Filter('[dbo].[t_sst_BrandMasterTest]',Supplier_Name <> Blank()));

 

worked good.

 

dave

Highlighted
Super User III
Super User III

Re: Delete ALL records in a sql sever table from Powerapps

If it worked then mark your answer as a solution

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Find your favorite faces from the community presenting at the Power Platform Community Conference!

Watch Now

Experience what’s next for Power Apps

See the latest Power Apps innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (7,780)