cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

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

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. 

6 REPLIES 6
v-bofeng-msft
Community Support
Community Support

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

Anonymous
Not applicable

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 

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

 

Anonymous
Not applicable

@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

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
New Member

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?

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,937)