+ Start a Discussion
swain 10swain 10 

How to update all parent account above the hierarchy if child account field is update like check box ?

How can i update a check box in all parent account above the hierarchy from the child account check box?
Best Answer chosen by swain 10
Raj R.Raj R.
Have you tried any of the following already? 
  1. Process Builder
    1. This is easy to do for System Administrators
  2. Apex Trigger
    1. This is helpful if you have advanced processing logic that is needed. 
    2. If you go with this option, remember to make a custom setting to that you can use it to turn a trigger on or off without deactivating it through a code deployment. 
  3. Cross Object Formula
    1. If you have a reference to the child account on the parent account, you can use a formula (checkbox) to do this.

All Answers

Raj R.Raj R.
Have you tried any of the following already? 
  1. Process Builder
    1. This is easy to do for System Administrators
  2. Apex Trigger
    1. This is helpful if you have advanced processing logic that is needed. 
    2. If you go with this option, remember to make a custom setting to that you can use it to turn a trigger on or off without deactivating it through a code deployment. 
  3. Cross Object Formula
    1. If you have a reference to the child account on the parent account, you can use a formula (checkbox) to do this.
This was selected as the best answer
Sridhar NarayansaSridhar Narayansa
If your requirement is as simple as what you have stated, two best options.

1. Use Cross object formula - Provided your object relationship is Master Detail all the way in the hierarchy
2. Use Process Builder irrespective of Master Detail or Lookup. Should work.

 
swain 10swain 10
Thank you Raj R. and Sridhar Narayansa. Unfortunately I can give one one best answer.
Raj R.Raj R.
The important thing is you find a solution to your problem and the community is aware of the best solution. Glad it worked out.