I’m trying to design a process where I check my Gmail inbox, and if there are new emails I trigger the next task. But if there are no new emails then I end the process.
I created a service task that uses the mail connector to retrieve messages from my inbox folder but it retrieves all the messages in the inbox in an ArrayList. Is there a way that I can retrieve only the unread messages?
This is usually achieved by setting the seen flag to false when checking the mailbox.
I searched the docs/forums and looked at the pizza mail example but couldn’t find anything about that.
Is this possible with the mail-poll connector or do I have to write my own code?
Camunda BPM 7.13