To provide some context, I'm using a text field where the manager's email is entered, and the Office365Users.DirectReports function should return the direct reports
(Office365Users.DirectReports(Head_Department_Name.Value))
. The application runs fine, but this error appears during data loading, and I need to hide this notification.
Could anyone advise on how to prevent this error or hide the notification?
Thanks in advance for your help!
I tried to modify the following code but without success:
If (!IsBlank(ThisItem.CreatedByUser), Office365Users.UserProfile(ThisItem.CreatedByUser).DisplayName)
Problem solved... thanks to your idea .... with small modify .... i set IfError to App > OnError adn now working 🙂 thanks
I just took a look at the connector:
IfError(Collect(colReports,Office365Users.DirectReportsV2(Head_Department_Name.Value)),"")
This code needs to be on a button (Navigate to the next screen or something like this) or on the onChange of your DroDown/Combobox. Make sure to use the new version of the action and put colReports in the control requested.
The expression was intended to retrieve the direct reports of the user whose department name is stored in the variable 'Head_Department_Name', and if there is an error, return an empty string. However, the errors indicate that the 'DirectReports' function is expecting a table value as an argument, not a text value, and the arguments provided to the 'IfError' function are invalid.
What is the error that it shows?
Does'nt work 😞
Hey @LukasToman ,
You can do it like this :
IfError(Office365Users.DirectReports(Head_Department_Name.Value),"")
This will hide the error message.
WarrenBelz
146,645
Most Valuable Professional
RandyHayes
76,287
Super User 2024 Season 1
Pstork1
65,997
Most Valuable Professional