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

Deleting linked records from 4 SQL tables

Can you help me figure out how to use the Remove function? I have 4 SQL tables that have linked ID relationships among them. When I remove a single record in a gallery, I am running into primary key constraint issues. Is there a way to write the Remove function so that it will look at each table and its associated key and then remove the item from the stated gallery?

2 REPLIES 2
Super User
Super User

Re: Deleting linked records from 4 SQL tables

Hi Kjs1.

 

Have you tried to use RemoveIf(datasource,ID=IDtoremove). Start with the child tables and remove all records that might be referencing the parent that you are planning to remove?.

 

Let me know if you don't come right.

Kjs1
Level: Powered On

Re: Deleting linked records from 4 SQL tables

Yes, I found a related solution.  Thanks

Helpful resources

Announcements
thirdimage

Power Apps Super User Class of 2020

Check it out!

thirdimage

New Badges

Check it out!

thirdimage

Power Apps 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!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

SecondImage

Difinity Conference

The largest Power BI, Power Platform, and Data conference in New Zealand

Top Solution Authors
Top Kudoed Authors
Users online (4,775)