Hi,
I have a canvas app with a
- Text Input (TextInput2)
- ComboBox (ComboBox1)
- Items Property = Office365Users.SearchUser({searchTerm:TextInput2.Text})
In the above, I search the name in TextInput2 and then select the user from ComboBox1.
I want to add a Label field where by I can display the selected user's Department. IE:
- ComboBox1 value = Adele Vance
- Label1 value = Marketing
I don't want to use a gallery
In Label 1's Text property, I have tried: Office365Users.UserProfileV2(ComboBox1.Selected.DisplayName).department however I get the following error:
Office365Users.UserProfileV2 failed: {"error": { "code": "ResourceNotFound", "message", "User not found", "innerError": { "date": "2023-01-02T12:54:12", "request-id": "3361e318-9171-4c8d-80f2-15db9cdfdd14". "client-request-id": "3361e318-9171-4c8d-80f2-15db9cdfdd14"}}}
Can anyone help?
TIA