Delete a related record by attribute in a 1:N relationship

May 22, 2015 at 12:22 AM
I need to be able to delete a custom entity where there could be more than one. In my case I am creating a subscription model. I create the subscription when the product is added to the order through a standard workflow. I also want to delete that subscription if the product is deleted from the order. The problem is an account could have multiple subscriptions so I have to make sure I delete the correct one. Does your project do that?

Thanks,
Gary