cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Helper II
Helper II

Need help creating a Gallery

Hi all, 

I'm pretty new at Powerapps and need some help. I have the Office365Users connector. I'm just trying to create a gallery that has the user's profile info, including picture. When I go to Insert- Gallery I selected Vertical. I don't seem to be able to add my Data Source. When I select Office365Users from the drop down, it still says "None" in the properties field. I assume it wants me to expand the "Items" formula from just Office365Users, but i'm at a loss as to what to put there. I tried Office365Users.MyProfile(), but the data source still says None.

 

 

image.png

2 ACCEPTED SOLUTIONS

Accepted Solutions
Highlighted
Community Support
Community Support

Re: Need help creating a Gallery

Hi @slan2018 ,

Could you please share a bit more about your scenario?

Do you want to list users' profile from your tenant within the Gallery?

 

Based on the issue that you mentioned, I think you have some misunderstanding on the data source types supported in PowerApps. The Office 365 Users connector is a action data source (e.g. Office 365 Outlook, Azure, ...etc) rather than table data source (e.g. SP List, SQL Table, .. etc). Currently, within PowerApps, only table data source could be visible within the Data source property of the Gallery control.

 

I have made a test on my side, please consider take a try with the following workaround:

9.JPG

 

10.JPG

 

11.JPG

 

12.JPG

 Set the Items property of the Gallery to following:

Office365Users.SearchUser({top:999})

Set the Text property of the Label controls in the Gallery to following:

ThisItem.DisplayName
ThisItem.Id
ThisItem.Department
ThisItem.JobTitle

...

...

Set the Image property of the Image control to following:

If(
   Office365Users.UserPhotoMetadata(ThisItem.Id).HasPhoto, 
   Office365Users.UserPhotoV2(ThisItem.Id), 
   SampleImage
)

Note: Please turn on the "Formula-level error management" option within Advanced settings of App settings of your app.

 

Best regards,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Highlighted
Helper II
Helper II

Re: Need help creating a Gallery

Hi @mdevaney 

When I update it, no information shows?

 

image.png

 

 

View solution in original post

6 REPLIES 6
Highlighted
Super User
Super User

Re: Need help creating a Gallery

@slan2018 

There's no problem if you use the current version MyProfileV2 in the Items property of the gallery.

Office365Users.MyProfileV2()

 

---
Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

Highlighted
Community Support
Community Support

Re: Need help creating a Gallery

Hi @slan2018 ,

Could you please share a bit more about your scenario?

Do you want to list users' profile from your tenant within the Gallery?

 

Based on the issue that you mentioned, I think you have some misunderstanding on the data source types supported in PowerApps. The Office 365 Users connector is a action data source (e.g. Office 365 Outlook, Azure, ...etc) rather than table data source (e.g. SP List, SQL Table, .. etc). Currently, within PowerApps, only table data source could be visible within the Data source property of the Gallery control.

 

I have made a test on my side, please consider take a try with the following workaround:

9.JPG

 

10.JPG

 

11.JPG

 

12.JPG

 Set the Items property of the Gallery to following:

Office365Users.SearchUser({top:999})

Set the Text property of the Label controls in the Gallery to following:

ThisItem.DisplayName
ThisItem.Id
ThisItem.Department
ThisItem.JobTitle

...

...

Set the Image property of the Image control to following:

If(
   Office365Users.UserPhotoMetadata(ThisItem.Id).HasPhoto, 
   Office365Users.UserPhotoV2(ThisItem.Id), 
   SampleImage
)

Note: Please turn on the "Formula-level error management" option within Advanced settings of App settings of your app.

 

Best regards,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Highlighted
Helper II
Helper II

Re: Need help creating a Gallery

Hi @mdevaney 

When I update it, no information shows?

 

image.png

 

 

View solution in original post

Highlighted
Super User
Super User

Re: Need help creating a Gallery

@slan2018
Please take a screenshot showing the full error message
Highlighted
Super User
Super User

Re: Need help creating a Gallery

@slan2018
It looks like you accepted your image with the error showing as the solution. How did you fix the problem?
Highlighted
Helper II
Helper II

Re: Need help creating a Gallery

Hi, I accidentally marked my reply as a solution instead of @v-xida-msft . I think i've fixed it

Helpful resources

Announcements
secondImage

Demo-Extravaganza 2020

Check out these cool Power Apps & vote on your favorite!

secondImage

Robotic Process Automation

Let's talk about the solution provided by Microsoft for Robotic Process Automation (RPA)

secondImage

Community Highlights

Check out whats happening in Power Apps

secondImage

Community User Group Member Badges

FIll out a quick form to claim your community user group member badge today!

Top Solution Authors
Top Kudoed Authors
Users online (8,507)