I have two objects with a master-detail relation ship. Invoice and Invoice Lines.
I am basically syncing this up from an external program into Salesforce. During updates, a lot of changes may be made including deleting certain lines on the source system.
So I thought its better that I delete all the Invoice lines first and then recreate them.
At this point I have the parent's(Invoice) ID, is it possible to delete all child records of this record without fetching their IDs?
I would also need to delete all the attachment records. It will be great if someone can give me a few pointers here.
I am hoping to avoid querying for the Invoice lines and attachments for every Invoice.
Thank you. Wish you all a happy new year.