I am trying to create my organization chart and do not know how to get rid off of this error. I tried few solutions from here but didn't work for me.
I set the variable:

and also Office365Users.UserProfile(varcurrentuser)
and ThisItem.DisplayName and Office365Users.UserPhoto(varcurrentuser)
For other people I used: Office365Users.UserProfile("xxxxx@xx.com") and Office365Users.UserPhoto("xxxxx@xx.com")
Have no idea where is the error and I this is my first app. If you want to help me I will appreciate detailed answer! 🙂