Get and update objects associated with companies
Jul 31, 2018 12:54 PM
As a dedupe app, we're trying to build a company dedupe. Of course, this will only work if we can get and update the associations (tasks, schedules, tickets, log activities, contacts, attachments, notes, emails, tickets, deals and calls) to the newly merged master company.
My question is, what's the easiest way to get the above objects associated with company and then update their association to another company id?
So the two endpoints needed for each object (tasks, schedules, tickets, log activities, contacts, attachments, notes, emails, tickets, deals and calls) are:
- Get list of said objects by company id
- Update association of said objects to another company id (assuming this has to be done one by one for each object found in the GET)
Any help with this would be very much appreciated. This is going to be a big job.