Attach email content to the comment section of the Trello card

Hello

Trying to automate that each time I receive a new email on Google Workspace, the email content is added the corresponding Trello card.
Each Trello card should have a ‘Email’ custom field with email filled in.

If the email exists in the Trello card, I would like to attach the given email content to the given card.

As trigger i used Gmail ‘Watch Email’
Then Trello ‘Search for Cards’ based on the email address from Step 1
if the search turns a card
Then Trello ‘Create a Comment in a Card’
if the search turns nothing, then stop.

I couldn’t make it to work.

Can you help ?

thx

Hi there @lebriand, I may be slightly confused about the specifics but I think I found a solution that can be modified to your liking. Read and see images below:

This is what the final scenario will look like,

  1. Use a mailhook, have all your emails forwarded to this hook automatically.
  2. Then set all your email addresses as variables equal to their trello card ID. (The ID for each card can be found in the web address bar when you slick into your card, eg trello._com/c/YOUR_ID/1-emailemailcom).
  3. Set a dynamic "get Variable’, meaning map the sender into this module, which will retrieve the correct ID from you variable list.
  4. Get the card by inputting the variable from the get variable module into the ID input.
  5. Lastly, create the comment desired in the card. Map the subject and the content into the comment section.

This can also be done using the database modules in order to hold the list of emails and card IDs. If you’d like a run-through of that contact me here nathan@timlittletech.com