cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
astrontelstar
Helper IV
Helper IV

Reading E-mail issue with only returning to records

I'm writing a power app that reads and acts on e-mails from O365 using the ClearCollect(Mail01, Office365Outlook.GetEmailsV3({fetchOnlyUnread:false}).value) function.  It seems to work but the gallery only shows 10 records.  I can't seem to get past this.  Anyone know what I'm missing?  I have close to 20 e-mails currently in my Inbox.

 

astrontelstar_0-1615723769966.png

 

3 REPLIES 3
timl
Super User
Super User

Hi @astrontelstar 

Is there any reason why you need to store the result in a collection? If you were to set the gallary control directly to the call to the GetEmailsV3, in theory, the gallery control should load the remaining emails as the user scrolls down the control.

Office365Outlook.GetEmailsV3({fetchOnlyUnread:false}).value

 

No, other than I need a way to refresh the gallery and I was using a button with onselect to do a ClearCollect command to refresh the list.  I tried your suggestion just putting the Office365Outlook GetEmails function 

in the data source and it does the exact same thing.  The gallery only shows 10 records.   I was hoping I was missing something simple ? 

Also, I don't know how to refresh the gallery if I don't use a collection; any ideas?  Refresh command run by a button didn't work.

Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Community Call Conversations

Introducing the Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (1,936)