Skip to main content
Question

Trouble extracting email content from Gmail and passing it to Google Sheets

  • July 22, 2025
  • 10 replies
  • 110 views

jess123
Forum|alt.badge.img

I’m trying to extract information from an email and send that data to a Google Sheet. I’m using the “New Email Matching Search” trigger, but when I run a test, it only shows me the raw code of the email instead of the actual content.

Could this be related to the email format?
Any advice on how to fix this or what steps I should take would be greatly appreciated.

Here’s the sample output when I run it and below is the email 

 



 

This post has been closed for comments. Please create a new post if you need help or have a question about this topic.

10 replies

DavidLGS
Forum|alt.badge.img+6
  • Zapier Solution Partner
  • 208 replies
  • July 22, 2025

Have scrolled through the test sample’s output entirely? You’ve only shown 3 output datasets, but there is usually many multiples. Including the “pretty” body as well as the html body.  
 

If you’re not able to scroll through, try typing “body” into the field search container and see if it shows up. 


Troy Tessalone
Zapier Orchestrator & Solution Partner
Forum|alt.badge.img+14
  • Zapier Orchestrator & Solution Partner
  • 34068 replies
  • July 22, 2025

Hi ​@jess123 

Try using one of these variables from Gmail:

  • Body HTML
  • Body Plain

 

Help links for resources to do email parsing…

Try using this Zap action: AI by Zapier - Analyze and Return Data

 


jess123
Forum|alt.badge.img
  • Author
  • Beginner
  • 11 replies
  • July 22, 2025

Have scrolled through the test sample’s output entirely? You’ve only shown 3 output datasets, but there is usually many multiples. Including the “pretty” body as well as the html body.  
 

If you’re not able to scroll through, try typing “body” into the field search container and see if it shows up. 

All output shows the same from top to bottom if I scroll down. I don’t see the “pretty” body unfortunately.


jess123
Forum|alt.badge.img
  • Author
  • Beginner
  • 11 replies
  • July 22, 2025

Hi ​@jess123 

Try using one of these variables from Gmail:

  • Body HTML
  • Body Plain

 

Help links for resources to do email parsing…

Try using this Zap action: AI by Zapier - Analyze and Return Data

 

Hi David, I used the Formatter by Zapier > Split Text and in the input this is what it shows me. From top to bottom, it all says Raw Payload Parts ….



 


Troy Tessalone
Zapier Orchestrator & Solution Partner
Forum|alt.badge.img+14
  • Zapier Orchestrator & Solution Partner
  • 34068 replies
  • July 22, 2025

@jess123 

When mapping variables, you can search by the variable label or value. (see screenshot below)

Help for how to map variables to input fields between Zap steps: https://help.zapier.com/hc/en-us/articles/8496343026701-Send-data-between-steps-by-mapping-fields 

 


Troy Tessalone
Zapier Orchestrator & Solution Partner
Forum|alt.badge.img+14
  • Zapier Orchestrator & Solution Partner
  • 34068 replies
  • July 22, 2025

@jess123 

If you are looking to hire help, there is a directory of Zapier Partners: https://zapier.com/partnerdirectory


jess123
Forum|alt.badge.img
  • Author
  • Beginner
  • 11 replies
  • July 22, 2025

@jess123 

When mapping variables, you can search by the variable label or value. (see screenshot below)

Help for how to map variables to input fields between Zap steps: https://help.zapier.com/hc/en-us/articles/8496343026701-Send-data-between-steps-by-mapping-fields 

 

Got it! It show the Body Html and Body Plain. When I choose Body Plain, the output only shows the signature and disclaimer part of the email. Do you think it has something to do with format of the email. Email looks like this

 

 


Troy Tessalone
Zapier Orchestrator & Solution Partner
Forum|alt.badge.img+14
  • Zapier Orchestrator & Solution Partner
  • 34068 replies
  • July 22, 2025

@jess123 

Make sure you are selecting a Gmail Zap trigger step example that has the email body data to use to parse.

It can take some trial and error.

Try testing both: 

  • Body PLAIN
  • Body HTML

 

I do this type of email parsing all the time for my clients, pretty basic stuff once you use the correct examples and variables to configure the Zap steps.


jess123
Forum|alt.badge.img
  • Author
  • Beginner
  • 11 replies
  • July 22, 2025

@jess123 

Make sure you are selecting a Gmail Zap trigger step example that has the email body data to use to parse.

It can take some trial and error.

Try testing both: 

  • Body PLAIN
  • Body HTML

 

I do this type of email parsing all the time for my clients, pretty basic stuff once you use the correct examples and variables to configure the Zap steps.

Okay, I will do that. Thank you!


Forum|alt.badge.img
  • 11 replies
  • August 6, 2025

HTML-only emails often show as raw MIME in search triggers.

Okay, I will do that. Thank you!

Did that work then??