How to Email a pdf file on click of a Button?

Please let me know how to Email a pdf file on click of a Button.

Thank you!!

Solved Solved
1 10 461
1 ACCEPTED SOLUTION

In your last screenshot, in the โ€œEVENTโ€ section of the automation, you will see a field for Condition.

You need to set your condition for the event to trigger - which in your case would be

[ACTION] = โ€œSENDโ€

That is correct, just make sure that your third action isnโ€™t set to โ€œDo not displayโ€.

View solution in original post

10 REPLIES 10

Please take a look at the section " Sending Email from an Action Button" in the article below.

Now, after the introduction of Automation BOTS, you will need to use a BOT instead of a workflow, but the principle of using the button remains the same.

We have to Trigger an Event in this case which will Trigger a Task. Is there a way to directly Trgger a Task without Triggring an Event?

The issue is that when we use Event then everytime an update happens even if the Buttoin is not clicked the PDF is made and many times its not needed. If we could make the PDF only when we click on the Button it will be great!

Please let me know. Thank You!

Even though it is not clear what you exactly mean, you could trigger the PDF creation only based on the field changes that is associated with the buttons.

The article describes that well.

This is very simple to prevent extra resends.

I have a spare column that I use for this.

Letโ€™s say, you called this column [Action], you then need to set up the following actions:

Action 1.
Set the data of column [ACTION] to โ€œSENDโ€
(Set display to none)

Action 2.
Set the data of a column [ACTION] to โ€œXโ€
(Set display to none)

Action 3. (the actual button the user will press)
Execute a sequence of actions:

  • Action 1
  • Action 2

Then, you would trigger your automation (formerly known as workflow) to send the pdf/email based on the data change in action 1 listed above, using the following expression.

[ACTION] = โ€œSENDโ€
Summary of *how* this works

The first action triggers the email/pdf to be sent by setting the value of [ACTION].

The second action โ€œresetsโ€ the [ACTION] column to stop additional emails/automations occurring when other edits are made (outside of when you wish to send the email)

The third action, simply fires Action 1 and Action 2 in one simple button.

Because changes are synced in order, this allows both changes on the same column to complete, resulting in the email being sent without the occurrence of additional, unwanted or unintended emails being sent.

Then, you would trigger your automation (formerly known as workflow) to send the pdf/email based on the data change in action 1 listed above, using the following expression.

[ACTION] = โ€œSENDโ€

I created the Action 1, 2 & 3 but I did not understand how to do the above step.

Also when you say (Set display to none) means Appearence โ†’ Prominence to be set to โ€œDo not displayโ€ correct?

Attached the snapshot of all that I did.

Please guide. Thank You!!





In your last screenshot, in the โ€œEVENTโ€ section of the automation, you will see a field for Condition.

You need to set your condition for the event to trigger - which in your case would be

[ACTION] = โ€œSENDโ€

That is correct, just make sure that your third action isnโ€™t set to โ€œDo not displayโ€.

That is an ABSOLUTE GENIUS MASTERSTROKE!!

You are a Blessing to the Appsheet Community!!

You have no idea how important this was for me!!

God Bless!!

Hey @Total_Solutions

I am glad that I could help! I am just trying to give back to community that has helped me so much.

I donโ€™t think that I have reached blessing status (yet) but I will keep trying to help out where I can!

Youโ€™re doing a great job!

Which described in Documentation and other topics.
Im really will prefer โ€œsandboxโ€ thread for such questions

Top Labels in this Space