We have files with special categories, if a new file is uploaded the category is mandatory for each file. Category A - can deleted Category B - cant deleted
I though I can make a validation rule like "Text(category__c) == "B". But if I upload a new file with category B I get my error which I have added for the validation rule.
Second idea was to add a flow to validate the deletion, but I can't choose the file object for run the flow if record is deleted.