Don't send email until attachment is ready

I’m a newbie and I’m building an app that allows users to send an email.
The user fills out a form with their inputs for a name and email address and then hits send.
The workflow then creates a pdf file, saves it to the database and then sends the email to the target email address with the pdf file attached.

Unfortunately, I can’t get it to run on one single button click. The email sends before the file is attached to it.
So far the only way I can do it, is to disable the send button until the attachment is ready and then allow the user to send the email, but this takes too long.

Any advice would be greatly appreciated on this.

Thanks.

1 Like

Does the pdf generator have a “pdf created” event?

This topic was automatically closed after 70 days. New replies are no longer allowed.