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!

Jackie Rookie Asked on December 5, 2023 in How To's.
Add Comment
2 Answers

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.

Rookie Answered on December 6, 2023.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.