cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Glaga
Helper I
Helper I

ERROR : Office365.GetEmails({folderPath:"Sent Items"

Hello,

I want to display my sent emails in a gallery. But I have an error for this formula : 

Office365.GetEmails({folderPath:"Sent Items";fetchOnlyUnread:false})

 

I get: error 404> The specified folder does not exist

Capture d’écran 2020-10-30 205453.jpg

 

Can you help me create a gallery that displays my emails sent to ... @ ...?

Thank you !

1 ACCEPTED SOLUTION

Accepted Solutions

@Glaga 

 

Can you try to update the expression to:

 

Office365Outlook.GetEmailsV3({folderPath:"SentItems",fetchOnlyUnread:false}).value

 

Hope this Helps!

 

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

View solution in original post

2 REPLIES 2
gabibalaban
Dual Super User
Dual Super User

Hi @Glaga ,

 

Have you tried 'Sent Items' in french ? 'Dossier Elements', I hope I'm not wrong...

The simpliest way is to use a text box where you enter the email to search or better if you have a collection with the email and display name of the persons to use a combobox.

In case you use a text box, to avoid a call to often  the GetMails function is better to use a collection on OnChange property of the text box:

ClearCollect(mySentEmailsTo, Office365Outlook.GetEmails({folderPath:"Dossier Elements", fetchOnlyUnread:false, to:TextInput.Text, top:25})

and the ITEMS property of gallery to mySentEmails.

In case you use a text box you can use either on OnChange property of the combobox something like:

ClearCollect(mySentEmailsTo, Office365Outlook.GetEmails({folderPath:"Dossier Elements", fetchOnlyUnread:false, to:ComboBox.Selected.Email, top:25}) and set the ITEMS property of gallery to mySentEmails.

or directlly to ITEMS property of gallery Office365Outlook.GetEmails({folderPath:"Dossier Elements", fetchOnlyUnread:false, to:ComboBox.Selected.Email, top:25}).

 

Hope it helps !

 

@Glaga 

 

Can you try to update the expression to:

 

Office365Outlook.GetEmailsV3({folderPath:"SentItems",fetchOnlyUnread:false}).value

 

Hope this Helps!

 

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

Helpful resources

Announcements
Power Platform Call June 2022 768x460.png

Power Platform Community Call

Join us for the next call on August 17, 2022 at 8am PDT.

Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Users online (5,146)