How can I delete child entities using end point , If I delete parent record (via end point ) in sugarcrm?
How can I delete child entities using end point , If I delete parent record (via end point ) in sugarcrm?
Hi Sagar Honrao,
It is not possible to delete all the related records via a single endpoint. For this firstly you need to get all the related records of the module via using /<module>/:record/link/:link_name GET and then need to delete all and then at the end need to delete the parent record.
Thanks Maryam, Can I delete all child records at once?
Thanks Maryam, Can I delete all child records at once?
No, For this you need to call the delete endpoint in a loop and pass the id's of all records one by one.