RE: Removing Subsidiaries in Customer-Subsidiary Relationship
Recently, I was tasked with removing X subsidiary from all of our existing customers, and I was unable to find anyway to do this efficiently. I tried using CSV import and using the “overwrite sublists” feature, however I don’t think it works, because in the customer-subsidiary sublist it cannot remove all the subsidiaries, therefore it cannot replace the sublist with one I put into the CSV.
I was wondering if there was anyway to automate or possibly do this without having to manually go through all of our existing customers and removing the subsidiary from their customer-subsidiary relationship. Any help would be greatly appreciated!
Updating this again! I ended up being able to solve this error, I wrote a working script (noticed my last one was just riddled with errors) and did a CSV import comprising of all of our existing customer base to run the script that I wrote that would trigger and delete the extra subsidiaries that I designated. I had to run getSublists() and .getSublistValues to access the “Subsidiaries” sublist tab under customers and then ran for-loops to iterate through and delete lines I did not want. Hope this methodology can help future people to fix this issue.