function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
scoopscoop 

Tear down the hierarchy?

Hi,

I am trying to undo a hierarchy that has been built up on an account.  I tried to replace the parent account id with blank value, but received an error stating "object reference not set to an instance of an object".  Is there a way to undo a hierarchy via the api?

Thanks.

 

SuperfellSuperfell
You should be able to use the fieldsToNull property to set the parent to null.