Im building an Org Chart and I would like to be able to display Myself and then above me, my manager and their manager all the way to to CEO level.
So far I can use this piece of code and extend upon it to get each manager I want but its really not dynamic
Office365Users.Manager(Office365Users.Manager(Office365Users.Manager(Office365Users.Manager(Office365Users.Manager(Office365Users.MyProfile().Mail).Mail).Mail).Mail).Mail).Mail
Has anyone ever come across a way to create a collection with all the managers up to CEO level that is dynamic and works off the current user logged in?