# Gmail Create a Draft module fails when email2 field is empty

**URL:** <https://community.make.com/t/gmail-create-a-draft-module-fails-when-email2-field-is-empty/28558>\
**Category:** Questions\
**Tags:** gmail\
**Created:** [February 25, 2024, 10:16am UTC](https://community.make.com/t/gmail-create-a-draft-module-fails-when-email2-field-is-empty/28558 "2024-02-25T10:16:56Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jill\_Metcalfe](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/jill_metcalfe/32/10374_2.png) [@Jill\_Metcalfe](https://community.make.com/u/Jill_Metcalfe)\
**Post date:** [February 25, 2024, 10:16am UTC](https://community.make.com/t/gmail-create-a-draft-module-fails-when-email2-field-is-empty/28558/1 "2024-02-25T10:16:56Z")

</div>

Hello! I’ve created a scenario to generate invoices by merging data from various Notion databases into a Google Doc. It’s all working fine until the last module, which is to create a draft in Gmail.

My Client database has fields for email1 and email2, because some clients require invoices to be sent to more than one address. I’ve set the Gmail module up accordingly. The problem is that, if there is no email2, the execution fails.

This is probably very obvious. But how do I set it up so that email2 can be empty?

 ![CleanShot 2024-02-25 at 11.15.19](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/1/e/1e0b405d1616b0f747a6091007c75edb950637e9.png)

---

<div class="post-metadata">

**Author:** ![samliew](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/samliew/32/13327_2.png) [@samliew](https://community.make.com/u/samliew)\
**Post date:** [February 25, 2024, 12:30pm UTC](https://community.make.com/t/gmail-create-a-draft-module-fails-when-email2-field-is-empty/28558/2 "2024-02-25T12:30:39Z")

</div>

Welcome to the Make community!

You can try using the built-in function `ifempty` with the email variable as the first parameter, and one of these options as the second:

- `{{ignore}}`
- `{{omit}}`

Let me know if it doesn’t work with screenshots

---

<div class="post-metadata">

**Author:** ![Jill\_Metcalfe](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/jill_metcalfe/32/10374_2.png) [@Jill\_Metcalfe](https://community.make.com/u/Jill_Metcalfe)\
**Post date:** [February 25, 2024, 9:00pm UTC](https://community.make.com/t/gmail-create-a-draft-module-fails-when-email2-field-is-empty/28558/3 "2024-02-25T21:00:33Z")

</div>

Thank you, it worked!  
Pasting my solution here in case it helps anyone else. Carriage return inside the `ifempty` function ensures you don’t get an empty line.

![CleanShot 2024-02-25 at 21.58.37](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/d/d/dd937c00cbf5b7e68da5fa98c6de8be47b2972ba.png)

---

<div class="post-metadata">

**Author:** ![Make\_Bot](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/make_bot/32/14661_2.png) [@Make\_Bot](https://community.make.com/u/Make_Bot)\
**Post date:** [March 10, 2024, 9:02pm UTC](https://community.make.com/t/gmail-create-a-draft-module-fails-when-email2-field-is-empty/28558/4 "2024-03-10T21:02:37Z")

</div>


