Skip to main content

Approve with a web link

Let a manager approve an invoice with one click from an email. Tape creates a web link, and the page that opens confirms the approval and updates the record.

Written by Leo

A web link is a URL that starts another automation for one record. This recipe uses two automations. The first emails the manager a link, and the second runs when the manager selects it. It's meant to let people approve without opening Tape and finding the record.

The automation Handle approval link: the trigger When a web link is clicked in Invoices, Update the current record with Status set to Approved, and Display a message on a web page with Thanks! The invoice is approved.

What you'll need

  • An Invoices database app with these fields:

  • Invoice, a text field

  • Amount, a number field

  • Manager, a member field

  • Status, a status field with the options Waiting for approval and Approved

Build the automation that handles the click

Build this one first, because the link needs a target.

  1. Open the Invoices app and click the automations icon at the top right (Create and view automations).

  2. Select New automation, then select When a web link is clicked.

  3. Select Add action → Update record. Add the field Status, select Set option, and choose Approved.

  4. Select Add action → Display message. It reads Display a message on a web page. Enter "Thanks! The invoice is approved."

  5. Give the automation a name, such as "Handle approval link", and select Create automation.

Build the automation that sends the link

  1. Go back to the list of automations. Select New automation, then select When a record is updated.

  2. In the trigger, select the field name and choose Status under FIELDS. Under And if the following conditions are met, add the filter Status Has changed to Waiting for approval.

  3. Select Add action → Create web link. Under to call, select Select an automation and choose "Handle approval link". The URL is saved in a variable named Link.

  4. Click ••• on the action, then select Web link expires under Settings. Keep Never, or pick On click so the link stops working after the first click.

  5. Select Add action → Send email. In To, type @, select the Manager field, and choose Email. In Subject, enter "Please approve: " and insert Invoice.

  6. In the message, write "Approve invoice ", the Invoice and Amount fields, and insert the Link variable.

  7. Select Create automation.

The automation Send approval link in Invoices: When a record is updated and Status has changed, the filter Status Has changed to Waiting for approval, Create a web link for the current record to call Handle approval link and save the URL in Link, and Send an email to Invoice / Manager / Email with the subject Please approve: Invoice and the Link in the message

Note:

  • Anyone with the link can use it. The link works without signing in to Tape. Don't forward the email, and consider On click as the expiry.

  • One link per record. The link works on the record it was created for.

The result

When an invoice moves to Waiting for approval, the manager gets an email with a link. Selecting it sets the status to Approved and shows "Thanks! The invoice is approved."

Variations

  • Create a second link for "Reject", which calls a different automation.

  • Post the link as a comment with Add comment instead of sending an email.

  • Use Redirect users instead of a message to send the manager to the record.

  • In the menu of Display message, turn on Fullscreen or Remove Tape info to change how the page looks.

Learn more

FAQs

Can the same link be used twice?

Yes, unless you set Web link expires to On click. Then the link stops working after the first click.

Why does the page show Thank you very much! instead of my message?

That's the page Tape shows after a successful run without a message of your own. It could be because:

  • The Display message action is missing from the automation that handles the click.

  • The link points to another automation than the one you built.

Are you a developer using the Tape API for automations?

The automation API has its own documentation for developers. Full reference: current_record_generate_automation_weblink in the developer docs →

Still have questions? Find answers and get help from community experts in the Tape community →

Did this answer your question?