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
Deepu Gupta 29Deepu Gupta 29 

Not able to find inherit logic

I have req that if I am creating a temporary account(record type) and select its parent account and on selecting parent account its category and subcategory field are inherited via parent account only.that i have already achieved.now what i need to do is when account category is not blank and its dependent field value is there  of focus area(field).so the focus area field value should be inherited via account category dependent value.
It should be like this :
like : if(Account type = "Temp account" &&  ParentId != null && Account Category != null) 
Now i am not sure how to achive inherit logic in my code and it will work on after save means after trigger.could any one suggest how can i achieve this req.?