Hello,
I am creating an app for enrolling in training courses. Some courses require the individual to be a manager. I have created a screen where the training or "admin" can verify that the person is enrolled by viewing their direct reports, however I cannot get the Office365Users.DirectReports function to work properly.
Here is how I have it set up:
On one screen, the admin can view everyone who is enrolled in a course in a gallery that is connected to a SharePoint list, with a field with the person's email address. The user enrolls through a form in the app and their information is populated with the Office365User.MyProfile() function when the user is logged in and completes the form, so I know the email address is correct.
On a separate screen, the admin can view the individual selected from the gallery on the previous screen. I have created a gallery to view the individuals direct reports and the "items" formula is set up as Office365Users.DirectReports(ViewEnroll_Gallery.Selected.EmailAddress). The issue is I keep getting the following error: Office365Users.DirectReports failed: { "status": 404, "message": " No user found with the specified id."} I have tried several ways around this, but I keep getting the same error.
Does anyone know what I am doing wrong, or suggestions for another way to accomplish this? I know the Org Browser template uses collections (I have tested the template with our AD data and it works fine), but I don't know enough about collections to set it up.
Any help would be greatly appreciate!
Thanks, Jen.