# Automation with button: No PDFs attached to email

**URL:** <https://forum.seatable.com/t/automation-with-button-no-pdfs-attached-to-email/2157>\
**Category:** Automations\
**Created:** [March 6, 2023, 8:16am UTC](https://forum.seatable.com/t/automation-with-button-no-pdfs-attached-to-email/2157 "2023-03-06T08:16:39Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![webdienste](https://forum.seatable.com/letter_avatar_proxy/v4/letter/w/977dab/32.png) [@webdienste](https://forum.seatable.com/u/webdienste)\
**Post date:** [March 6, 2023, 8:16am UTC](https://forum.seatable.com/t/automation-with-button-no-pdfs-attached-to-email/2157/1 "2023-03-06T08:16:39Z")

</div>

I have set up a button which first creates 2 PDFs then attaches them to an email and sends the email. However, the emails received have no attachments.  
My assumption is that the email is sent before the PDFs are created. It takes a few seconds for the PDFs to appear in the column. What do you think?  
I have done a test of another button that sends previously created PDFs and this works (attachments sent and received).

---

<div class="post-metadata">

**Author:** ![rdb](https://forum.seatable.com/user_avatar/forum.seatable.com/rdb/32/1869_2.png) [@rdb](https://forum.seatable.com/u/rdb)\
**Post date:** [March 6, 2023, 8:32am UTC](https://forum.seatable.com/t/automation-with-button-no-pdfs-attached-to-email/2157/2 "2023-03-06T08:32:19Z")

</div>

This issue report ties to this one of yours: [https://forum2.seatable.io/t/internal-server-error-attempting-to-create-2-pdfs-with-1-button-click/1681](https://forum2.seatable.io/t/internal-server-error-attempting-to-create-2-pdfs-with-1-button-click/1681)

Your assumption is correct:

> [@webdienste](#):
>
> My assumption is that the email is sent before the PDFs are created. It takes a few seconds for the PDFs to appear in the column.

The issue will be solved in the next release in some weeks from now.

---

<div class="post-metadata">

**Author:** ![Ben](https://forum.seatable.com/user_avatar/forum.seatable.com/ben/32/385_2.png) [@Ben](https://forum.seatable.com/u/Ben)\
**Post date:** [April 19, 2023, 9:56am UTC](https://forum.seatable.com/t/automation-with-button-no-pdfs-attached-to-email/2157/3 "2023-04-19T09:56:45Z")

</div>

Hello,  
is it considered as fixed in the latest release ?  
I’m running 3.4 and I had the same kind of behaviour with these steps on one button :

1. PDF creation
2. Email including the PDF
3. Change status of one field

When I clicked, I got a red cross on the button, meaning an error.  
The status got changed, then the PDF appeared, but the email was not sent.

My guess is that the email can’t be sent as the PDF is still under creation.  
How to solve that ?

---

<div class="post-metadata">

**Author:** ![rdb](https://forum.seatable.com/user_avatar/forum.seatable.com/rdb/32/1869_2.png) [@rdb](https://forum.seatable.com/u/rdb)\
**Post date:** [April 19, 2023, 10:54am UTC](https://forum.seatable.com/t/automation-with-button-no-pdfs-attached-to-email/2157/4 "2023-04-19T10:54:21Z")

</div>

Please upgrade to SeaTable 3.5.

---

<div class="post-metadata">

**Author:** ![rdb](https://forum.seatable.com/user_avatar/forum.seatable.com/rdb/32/1869_2.png) [@rdb](https://forum.seatable.com/u/rdb)\
**Post date:** [April 19, 2023, 10:55am UTC](https://forum.seatable.com/t/automation-with-button-no-pdfs-attached-to-email/2157/5 "2023-04-19T10:55:16Z")

</div>

@webdienste Can you retest and mark the topic as solved when it works for you?

---

<div class="post-metadata">

**Author:** ![webdienste](https://forum.seatable.com/letter_avatar_proxy/v4/letter/w/977dab/32.png) [@webdienste](https://forum.seatable.com/u/webdienste)\
**Post date:** [April 19, 2023, 11:26am UTC](https://forum.seatable.com/t/automation-with-button-no-pdfs-attached-to-email/2157/6 "2023-04-19T11:26:42Z")

</div>

Hi rdb,

I can confirm that it works. I will mark this topic as solved.

---

<div class="post-metadata">

**Author:** ![Ben](https://forum.seatable.com/user_avatar/forum.seatable.com/ben/32/385_2.png) [@Ben](https://forum.seatable.com/u/Ben)\
**Post date:** [April 19, 2023, 12:00pm UTC](https://forum.seatable.com/t/automation-with-button-no-pdfs-attached-to-email/2157/7 "2023-04-19T12:00:03Z")

</div>

Works indeed with latest

---

<div class="post-metadata">

**Author:** ![system](https://forum.seatable.com/uploads/default/original/1X/04603423fe81a46c321283663086c475429e8ccb.png) [@system](https://forum.seatable.com/u/system)\
**Post date:** [April 21, 2023, 12:00pm UTC](https://forum.seatable.com/t/automation-with-button-no-pdfs-attached-to-email/2157/8 "2023-04-21T12:00:50Z")

</div>

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.
