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.
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:
Best Regards,
Bof
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
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 panel
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?
User | Count |
---|---|
252 | |
102 | |
94 | |
50 | |
37 |