Hi @Anonymous :
Do you want to get all of the emails and show them in the “InboxGallery”?
Do you want to know which code filter the emails?
Firstly, taking into account the performance of the app, I do not recommend you to get all of the emails.
Because the number of emails obtained may be very large, this will seriously affect the performance of the app.
Secondly, the code you are looking for is located in the OnStart property of the app.
ClearCollect(Emails, Office365.GetEmails({folderPath:EmailFolderName, fetchOnlyUnread: false, searchQuery: "(To:" & First(DLAddresses).Email & " OR CC:" & Dropdown1.SelectedText.Email & ")", top: 25}))
The point is that this code will only get the first 25 emails.
Finally, I suggest that you can increase the number of emails instead of getting all emails.
The key is to modify the value of the top parameter.
For example:
ClearCollect(Emails, Office365.GetEmails({folderPath:EmailFolderName, fetchOnlyUnread: false, searchQuery: "(To:" & First(DLAddresses).Email & " OR CC:" & Dropdown1.SelectedText.Email & ")", top: 50}))
/*get first 50 mails*/
I think this link will help you a lot:
Get emails
Best Regards,
Bof