You need to sign in to do that
Don't have an account?
Enterprise Territory Management Assigned User and child Account owner
I have a self relationship on Account object
Parent Record: Account 1, RecordType = HQ, Owner = 'Donald Duck'
Child Record: Account 2, RecordType = Franchisee, Owner =' Billy Wonka'
Child Record: Account 3, RecordType = Franchisee, Owner =' Billy Wonka'
So, on Account2 I have a field called Parent that looks up to Account 1
In the Territory Hierarchy I have a Territory called 'SOHO'
User assigned to 'SOHO' = Billy Wonka
Account assigned to 'SOHO' = Account 1
When the User assigned to 'SOHO' changes to 'Mickey Mouse' I want the owner of the Child Records Account 2 and Account 3 to be changed to 'Mickey Mouse'
So basically chnaging the owner on the child records to be the user who is assined to a territory.
Is that possible ?
Here is my psedocode:
Trigger on Territory2 after update
If IsChanged (Territory2. assinedOwner )
GET Id of the Territory's Assignd Owner
Find Child Records related to the Id
Add the Child Records in a List
For EachItem in the ChildRecordList get the ownerid
childrecordOwnerid = Territory's Assignd OwnerID
Is this possible in a trigger or a flow ?
Yes you can achiece this with trigger (after update).
Refer this below sample and modify your code as per you need :-
Kindly mark it as the best answer if it helps you.
Thank you