How Access Mails From Gmail Account
I just wanted to Read mail from my Gmail account.
Currently I am able to read mail form INBOX folder only using Get Mail Messages Operation form Base content pack.
Please provide details on
How to access mails from other folders also (sent mail, starred, Drafts )
How to access only Unread mails.
PFA Eroor logs for other folder names.
Thanks in advance
I also have the problem with accessing the Out of the box folders like Sent, drafts etc... However any created folder OO can access, I created a simple Personal Folder and OO was able to read it
Regarding only reading unread mails, what is you ruse case you are trying to build, that would make it easier to provide you with a more informative answer
Hi Mario Morelli,
Thanks for reply.
Basically I want to trigger some flows which are dependent on incoming Emails.
So according to subject/body lines of email particular flow will get triggred and If email is already readed then no action is
required (considering appropriate action is already taken) thats why I want to read only unread mails.
Also message number we provide in Flow inputs accesses
the mail at End.. (e.g....Message no = 1 causes flow to access last mail in your inbox folder) is there any way to access mails form
starting at first mail in inbox folder.
I see, is deleting the mails after processing not an option for you? or move a processed mail into a "Processed Folder"
That would solve the issue if you don't want to delete it
For reading from the start , what I have configured before was adding a "mail message count" operation at the start which gets the count of emails in the inbox, assign this value into a variable to be used by the loop operation
I am assuming your using a loop operator to run through the mailbox? If so Just assign the "Mailbox Count" variable in the message number field and then with the loop increment with -1, this will then run through the loop from the count until message 1
Hope this answers your question
Let me know if you require more assistance
Hi Mario Morelli,
Thank You Very Much for the Solution you provided.
Now I can use delete mail after retrieval to get only unread mails.
But problem is that if next step prior to this retrieval fails then I will be not having any way to again access that mail......
so Moving mail is really good option and if required, we can acces same mail again for error correction.
So will u please suggest how can we MOVE this mail to any other folder.
As I see there is no option in that mail operations to move mails.
Thanks In advance
Not a problem
Not sure to do it in OO for now, will have to do some testing
However what I could maybe suggest is maybe add a write to csv or such into the FLow, when there is an error it dumps all the details of that mail to a csv which you can later check and investigate and reprocess the mail as you have all the info
Other suggestion is to have another gmail address where you forward all mail to, just as a backup when things go wrong with the primary mailbox,to find and reprocess the mail if needed
These are just things I can think off off the top of my head, no promise that it will work
I will spend an hour or 2 today to run through your use case and see if there is a simpler solution
Hi Mario Morelli,
Thnaks for Solution.
I am going with Solution of Storing Message Deatils in another file.
I think that will be great b'coz forwarding it to another mail and re-access that mail will be tedious than accessing simple file say CSV/Word.
Once again Thanks for all the above solutions you provided.