web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / QuickTask only display...
Power Apps
Unanswered

QuickTask only displays filtered list which are emails stating urgent etc. How to show all emails

(0) ShareShare
ReportReport
Posted on by

HI All I am super new to powerapps and I am trying to edit the quicktask app as it has most of the features I need. My only issue is that it filters out the emails when i run the app however in preview mode it displays all of them. Please could you assist, I can't find the code which filters out. 

Categories:
I have the same question (0)
  • v-bofeng-msft Profile Picture
    on at

    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

  • Community Power Platform Member Profile Picture
    on at

    Hi there thanks a lot for getting back to me, this hasn't solved my issue, I did see that line and did assume it was related to the number of emails returned however the issue persists when I run the app it only pull certain emails in chronological order however they are emails which state urgent or action required etc. It isnt just the first 25/50 emails. It's as though its pulling from a priority list or something else 

  • v-bofeng-msft Profile Picture
    on at

    Hi @Anonymous

    I made a simliar test,but did not encounter the problem you mentioned.(It's as though its pulling from a priority list or something else )

    If you want to add or delete certain filtering rules,I think this link will help you a lot:

    https://docs.microsoft.com/en-us/connectors/office365/#get-emails-(v3)

    Best Regards,

    Bof

     

  • Community Power Platform Member Profile Picture
    on at

    @v-bofeng-msft 

    Thanks for the link, could the issue I am facing be related to the fact there is no email address filled in the email address box, because when I run within the editing it details the linked mailbox however on running the published app it is left empty as shown below 

    Top of the left panelTop of the left panel

  • v-bofeng-msft Profile Picture
    on at

    Hi @Anonymous :

    Yes, they are related. I suggest you check your setting screen to see if it correctly displays your email address.

    1.jpg

    Best Regards,

    Bof

  • Rose9392 Profile Picture
    2 on at

    Hello, I changed the line of the number of emails and I click on play  development works. It's works!

    I have published the new version but when I click on the shared link of power Apps it does not take my changes. Why?

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 765 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 272

Last 30 days Overall leaderboard