cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Reinier
Helper I
Helper I

SearchUsers and DirectReports provide different collection

Hi All, 

I'm building an onboarding app and want to collect all team members for a manager. I'm using the Office365Users.DirectReportV2 connector which is working fine. However, I would also like to have the option to collect all users. While this functions is also working, it does provide other data columns. e.g., DirectReport shows "displayName" while SearchUser "DispalyName". Hence, my tables cannot show any data because these are looking for displayName which does not exist when switching to all users. This applies to all columns. Does anyone know how to collect both direct reports and all users while remaining the same data columns? 

 

The two functions are: 

ClearCollect(myTeam,Office365Users.DirectReportsV2(User().Email,{top:500}).value)

ClearCollect(myTeam,Office365Users.SearchUserV2({top:500}).value)

 

Thank you in advance!! 

1 ACCEPTED SOLUTION

Accepted Solutions
v-jefferni
Community Support
Community Support

Hi @Reinier ,

 

You may use the original formulas associated with the ShowColumns and RenameColumns functions. I don't think you will need both the whole tables, do you?

 

Hope this helps.

 

Best regards,

Community Support Team _ Jeffer Ni

If this post helps, then please consider Accept it as the solution to help the other members find it.

View solution in original post

1 REPLY 1
v-jefferni
Community Support
Community Support

Hi @Reinier ,

 

You may use the original formulas associated with the ShowColumns and RenameColumns functions. I don't think you will need both the whole tables, do you?

 

Hope this helps.

 

Best regards,

Community Support Team _ Jeffer Ni

If this post helps, then please consider Accept it as the solution to help the other members find it.

Helpful resources

Announcements
Power Platform Call June 2022 768x460.png

Power Platform Community Call

Join us for the next call on August 17, 2022 at 8am PDT.

Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

365 EduCon 768x460.png

Microsoft 365 EduCon

Join us for two optional days of workshops and a 3-day conference, you can choose from over 130 sessions in multiple tracks and 25 workshops.

Users online (1,688)