Is there a way to query dependent records? I'm trying to delete records but I don't know what's been attached to them.
a
Anthony OConnor
12/18/2024, 9:33 PM
I'd love to know this too, my current method is ... wait for it to fail the delete process then you know it has dependent records 😕
Anthony OConnor
12/18/2024, 9:39 PM
just brainstorming... you'd need to check every list/record field type of type %recordType%
where the value is %recordId%
Anthony OConnor
12/18/2024, 9:40 PM
i think? actually that might not work, if there are files attached to a record are they dependent records? I don't think they'd have a refernce to the record they're attached to, that relationship lives on the records you're trying to delete 🤔
Anthony OConnor
12/18/2024, 9:41 PM
I was just assuming we're looking for any instance where the record to delete is a foreign key, but I'm not sure that would be everything