Hi Community,
I am building a request leave app in PowerApps through using a standard template. On the opening screen the approver of the user has to be set, but the part in red gives a warning:
//whenever user navigates to this page, set their approver to their manager
Set(_selectedApprover, Office365Users.Manager(_myProfile.Id));
Set(_selectedApproverPhoto, If(Office365Users.UserPhotoMetadata(_selectedApprover.Id).HasPhoto, Office365Users.UserPhoto(_selectedApprover.Id)))
1. Function 'manager' has some invalid arguments
2. Name isn't valid. This identifier isn't recognised.
Can someone explain what I do wrong?