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

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 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.

Power Platform Call June 2022 768x460.png

Power Platform Community Call

Join us for the next call on June 15, 2022 at 8am PDT.

PA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.

PA.JPG

New Release Planning Portal (Preview)

Check out our new release planning portal, an interactive way to plan and prepare for upcoming features in Power Platform.

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