cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
JanLektonen
Level: Powered On

Office365.GetEmails(...) only shows 25 mails from a useraccount

I'm retrieving e-mails from Office365 via this powerapp function:

 

Office365.GetEmails({folderPath: displayMailsFrom, fetchOnlyUnread:false, top:25, searchQuery: TextInputSearchMails.Text})

 

My problem is that I would like to list more than 25 emails to the user. How do I achieve this. The documentation only gives me a choice to use "TOP:25" and get 25 e-mails to display in gallery.

 

How do I retrieve the rest/more of the e-mails?

4 REPLIES 4
Community Support Team
Community Support Team

Re: Office365.GetEmails(...) only shows 25 mails from a useraccount

You should be able to specify the a larger number in order to get more Emails, the default value for the top Syntax is 10:

 

For example, to get 100 Email, specify the Top parameter as 100:

Office365.GetEmails({folderPath: displayMailsFrom, fetchOnlyUnread:false, top:100, searchQuery: TextInputSearchMails.Text})

For more ifnormation about this action, see:

https://docs.microsoft.com/en-us/connectors/office365/

 

Regards,

Michael

Community Support Team _ Michael Shao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
JanLektonen
Level: Powered On

Re: Office365.GetEmails(...) only shows 25 mails from a useraccount

Thanks - but it is only possible to retrieve 25 emails. Please try it out and you will se that the maximum mails in the list will be 25 e-mails.

Microsoft Employee

Re: Office365.GetEmails(...) only shows 25 mails from a useraccount

This does not work with GetEmails or with GetEmailsV2. It is restricting to 25 emails and forces to mention that in the code. I tried top:26 and gave the error. see the screen shot.

 

 

Django
Level: Powered On

Re: Office365.GetEmails(...) only shows 25 mails from a useraccount

Any update on this?

I see the 25 limit is not mentioned in the documentation --> this would be very wise to do:

Helpful resources

Announcements
firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

SecondImage

PowerApps Monthly Community Call

Next Wednesday, August 21st at 8am PDT

Top Community Contributors for July 2019

Top Community Contributors for July 2019

Let's thank our top community contributors

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

FirstImage

Power Platform World Tour

Coming to a city near you

thirdimage

PowerApps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

FourthImage

Join PowerApps User Group!!

Connect, share, and learn with your peers year-round

FifthImage

Dynamics 365 and Power Platform April 2019 Release notes

Features releasing from April 2019 through September 2019!

SixthImage

Power Summit Australia 2019

August 20-23rd 2019

Users Online
Currently online: 180 members 3,553 guests
Please welcome our newest community members: