Save the date when an action is performed with a button

Hi!

Is there a way to save the date when an action is triggered? Im trying to have a column with the dates when an email is sent when a button is pressed.

Thanks in advance!

Hi Gerardo

Yes, you can use the RunActions() function to run two separate actions from the same button:

  1. Gmail::SendEmail() to send the email and
  2. ModifyRows() to save the date.

A slightly clunkier way would be to have three buttons in the same row:

  1. Send email (hidden)
  2. Modify rows to save date (hidden)
  3. A third “Send” button that actually pushes the two buttons above

I hope that helps!

Thanks, Tim! It works!