Skip to main content
Best answer

How to get an image given by a formula IMAGE(..) in GSheets to send it by mail

  • January 30, 2025
  • 8 replies
  • 37 views

Forum|alt.badge.img

Hi, I generate a qr-code in my GSheets using the api.server.com via a formula.
Example : =IMAGE("https://api.qrserver.com/v1/create-qr-code/?size=500x500&data="&ENCODEURL("https://www.google.com/"))

I tried to retrieve it in Zapier to send it on an email but did not find how as the result is empty :(
This is my trigger step

This is my Gmail step

But the result is 

How can it be embedded in my body mail?

Thank you for your help. Cheers. Lucie

Best answer by ELDEETIC_byLucieDUVERGER

@ELDEETIC_byLucieDUVERGER 

The resulting HTML is not a valid URL due to the formula.

Help link about using img tags in HTML: https://www.w3schools.com/tags/tag_img.asp

 

 

 

 

Hi Troy, I did not see what was wrong whereas it was quite obvious!
Tx for leading me to the solution. Sorted

Now I can see the image within the email using the result of the same formula but this time without the image formula (see 3rd column which I’m using to get the result for URL and its formula in 4th column :)
 

 

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

8 replies

Troy Tessalone
Zapier Orchestrator & Solution Partner
Forum|alt.badge.img+14
  • Zapier Orchestrator & Solution Partner
  • January 30, 2025

Hi ​@ELDEETIC_byLucieDUVERGER 

Looks like the HTML is invalid.

Appears there is an extra space after the: src=
Appears there is a missing space before the: alt=

 


Forum|alt.badge.img

Hi ​@ELDEETIC_byLucieDUVERGER 

Looks like the HTML is invalid.

Appears there is an extra space after the: src=
Appears there is a missing space before the: alt=

 

Good point. But not working either even if looks different :(

 


Troy Tessalone
Zapier Orchestrator & Solution Partner
Forum|alt.badge.img+14
  • Zapier Orchestrator & Solution Partner
  • January 30, 2025

@ELDEETIC_byLucieDUVERGER 

We would need to see screenshots showing the updated Zap step configuration.

The file link must be a publicly accessible url.


Forum|alt.badge.img

Hi, here is the set up and what I get after the test in the data in tab (data out do not state relevant info).

 


Troy Tessalone
Zapier Orchestrator & Solution Partner
Forum|alt.badge.img+14
  • Zapier Orchestrator & Solution Partner
  • January 31, 2025

@ELDEETIC_byLucieDUVERGER 

The resulting HTML is not a valid URL due to the formula.

Help link about using img tags in HTML: https://www.w3schools.com/tags/tag_img.asp

 

 

 

 


JammerS
Forum|alt.badge.img+6
  • Zapier Staff
  • February 3, 2025

Hi ​@ELDEETIC_byLucieDUVERGER,
 
We just wanted to see how everything is going with your Zap. Did Troy's recommendation get the job done? Feel free to reach out if you need further assistance with your Zap. We're glad to address any concerns and assist you.
 
We're looking forward to your response.


Forum|alt.badge.img

@ELDEETIC_byLucieDUVERGER 

The resulting HTML is not a valid URL due to the formula.

Help link about using img tags in HTML: https://www.w3schools.com/tags/tag_img.asp

 

 

 

 

Hi Troy, I did not see what was wrong whereas it was quite obvious!
Tx for leading me to the solution. Sorted

Now I can see the image within the email using the result of the same formula but this time without the image formula (see 3rd column which I’m using to get the result for URL and its formula in 4th column :)
 

 


JammerS
Forum|alt.badge.img+6
  • Zapier Staff
  • February 4, 2025

I'm glad to hear that you've resolved the issue with Troy's insights! It's great that you can now see the image within the email using the result of your formula.

 

It's not always easy to spot what's wrong in a complex setup like this, so don't hesitate to contact us if you encounter any other issues or have more questions.

 

Keep up the good work with your Zaps, and remember, the Zapier Community is always here to help.