GMAIL get an email

(Xavier Baquero) #1

Hello, everyone.

I want to use my bot with a news feature, when the user enter a word news the bot reads the 3 or 5 last emails with and specific label from gmail and show a message to the user.

It’s that possible? or I just dreaming hahaha tks for your help.

(Daniel Beckett) #2

@Xavier_Baquero

To get an email you’ll need the Message ID so unfortunately you can’t just pull through ‘X’ amount of emails based on certain criteria.

What may work is to use the trigger for New Email and then save the email content into something like Google Sheets so that you can pull results from there instead.

(Xavier Baquero) #3

Tks, for your suggestion. Just another question, when I have the email content in google sheets can I get the last X cells? not all the old contents?

Regards,

(Daniel Beckett) #4

There’s list rows for all data or search rows to find all rows that match a certain criteria. No option for get X number of rows though, sorry.