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.
What you'll need
An
Invoicesdatabase app with these fields:Invoice, a text fieldAmount, a number fieldManager, a member fieldStatus, a status field with the optionsWaiting for approvalandApproved
Build the automation that handles the click
Build this one first, because the link needs a target.
Open the
Invoicesapp and click the automations icon at the top right (Create and view automations).Select
New automation, then selectWhen a web link is clicked.Select
Add action→Update record. Add the fieldStatus, selectSet option, and chooseApproved.Select
Add action→Display message. It readsDisplay a message on a web page. Enter "Thanks! The invoice is approved."Give the automation a name, such as "Handle approval link", and select
Create automation.
Build the automation that sends the link
Go back to the list of automations. Select
New automation, then selectWhen a record is updated.In the trigger, select the field name and choose
StatusunderFIELDS. UnderAnd if the following conditions are met, add the filterStatusHas changed toWaiting for approval.Select
Add action→Create web link. Underto call, selectSelect an automationand choose "Handle approval link". The URL is saved in a variable namedLink.Click
•••on the action, then selectWeb link expiresunderSettings. KeepNever, or pickOn clickso the link stops working after the first click.Select
Add action→Send email. InTo, type@, select theManagerfield, and chooseEmail. InSubject, enter "Please approve: " and insertInvoice.In the message, write "Approve invoice ", the
InvoiceandAmountfields, and insert theLinkvariable.Select
Create automation.
Note:
Anyone with the link can use it. The link works without signing in to Tape. Don't forward the email, and consider
On clickas 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 commentinstead of sending an email.Use
Redirect usersinstead of a message to send the manager to the record.In the menu of
Display message, turn onFullscreenorRemove Tape infoto change how the page looks.
Learn more
FAQs
Can the same link be used twice?
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?
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 messageaction 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?
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 →
