You need to sign in to do that
Don't have an account?
kamal3883
Dynamic extraction of parent account
Hi,
I want to dynamically extract parentid of account. this is like this.
suppose we have account hiearchery A--B--C---D--E . now on E i want to populate id of A. but i dont know length of hiearchery.
Can somebody help on this ?
Try this,
All Answers
Hi Kamal,
You can acheive this by formula field.Create a forumula field in account select text as type and paste the following code in it it will reteive the ID of Account (A)
Parent.Parent.Parent.ParentId
Please mark as right answer if its help!
Hi,
What if there are six or 10 record in hierarchy. this formula is not dynamic. i am ready to write anything in apex too.
Try this,