The message of Send email and the text of Create PDF are written in HTML (the code that describes text, links, and tables on a web page). You can format the text with the editor menus, and you can edit the HTML code directly for things the menus don't offer.
Note:
The menus are in the fullscreen editor. Select
Open in fullscreento format text, insert tables, buttons, and images, or edit the HTML.Check a preview before you save. With
Simulate variables, the preview uses values from a real record.
Format the text
To format the message of an email or the text of a PDF:
Open the automation and select the
Send emailorCreate PDFaction.Hover over the text box and select
Open in fullscreen. The editor shows the menusFile,Edit,View,Insert,Format, andTable, plus a toolbar with font, font size, and text styles.Select text and use
Formatto change it, for example to make it bold or add a heading.Use
Tableto insert a table with a fixed number of rows. For a table with one row for each record, build it in a loop →Type
@to insert record values, for example@Contract / Title. Learn more about record values →Select
Show preview, thenSimulate variablesto check the result.Select
Create automation, orSave changesif the automation already exists.
To edit the HTML directly, open the editor in fullscreen and select File → Source code. It's available in Send email and Create PDF.
Add a link or a button to an email
A link lets recipients open a record or start an automation with one click.
To link to a record, insert
Record URLwith@. Learn more about record values →To start another automation from a link, add
Create web linkbefore the email. It saves the link in a variable, for exampleLink. Insert the variable with@in the message. Learn more about web links →
To show the link as a button, open the editor in fullscreen and select Insert → Button. In Add a button, enter the Text. In Link to web address, type @ and select the variable, for example Link. Then choose the Alignment, the Shape (Square, Round, or Pill), and the Style (Filled or Outlined). Set the colors under Colors and the spacing under Padding. If an email program doesn't show the button style, a plain link next to the button still works.
For a plain link, select Insert → Link. In the web address field, type @ and select the variable.
Set up a PDF
File name is always shown above the editor. Select Show more in Create PDF to see the layout settings, then Show less to hide them. The header, footer, and page numbers are in the action's ••• menu.
File name: the name of the file. You can add values with@. If you leave it empty, the file is calledUntitled.pdf.Layout: three dropdowns for the orientation, the page size, and the margins. A new action starts withPortraitandNormal margins.Orientation: choose
Landscapeto turn the page.Page size: a new action starts with
Letter, orA4if your Tape language is German. You can also chooseTabloid,Legal,A3,A5,Envelope #10, orCustom format. WithCustom format, you enter the width and height.Margins: you can also choose
Narrow margins,Moderate margins,Wide margins, orCustom margins. WithCustom margins, you set the top, right, bottom, and left margins, plus the header and footer margins when a header and footer are turned on.Units: sizes and margins are shown in centimeters or inches, depending on
Measurement systeminSettings→Preferences.Header, footer, and page numbers: open the
•••menu ofCreate PDFand turn onHeader and footerorPage numbersunderSettings.
The action saves the file in a variable called PDF. Use it in a later action:
To attach the PDF to an email, open
Attach fileinSend emailand selectPDF.To keep the PDF on the record, add
Update record, selectAdd field, pick a file field, chooseAdd files, and selectPDF.
Use images
To add an image to the email message or the PDF, open the editor in fullscreen, select Insert → Image, and enter the image's web address.
To show an image from a file field of the record, type @ in the web address field and choose the field's File URL.
Let's look at an example
Let's say your solar company wants to send an installation summary to the customer. Here's how:
Set the trigger to
When a record is updatedand add a filter:Status,Has changed to,Installed.Select
Add action→Create PDF. Enter aFile namesuch as "Installation summary " followed by the customer's name.Open the text box in fullscreen and write the summary, with a heading and a table of the installed parts.
Select
Show moreand choosePortraitandA4.Select
Add action→Send email. Insert the customer's email inTo, write a short message, and selectPDFunderAttach file.Select
Create automation.
The customer gets an email with a PDF that has their name in the file name.
Formatting errors
A button looks like plain text. If the email program doesn't show the button style, recipients can still use a plain link next to the button.
The PDF has a missing page or an extra page. Check the page size and margins, then open
Show preview.A PDF is created but doesn't arrive. The run shows no error.
Create PDFandSend emailboth succeed, and the email goes out without the file. OpenSend emailand check thatAttach filecontainsPDF.
Learn more
FAQs
Can I use my own fonts or a logo in a PDF?
Can I use my own fonts or a logo in a PDF?
You can add a logo, but there's no option to upload a font. Choose a font and a font size from the toolbar in the fullscreen editor. To add a logo, select Insert → Image and enter the image's web address.
Can I preview the email or PDF in a new tab?
Can I preview the email or PDF in a new tab?
Yes! Hover over the text box and click the icon with the tooltip Open preview in new tab.
Can I add charts to a PDF?
Can I add charts to a PDF?
No, there is no option to insert charts. Automations can put text, tables, and images into a PDF.
Can I add a header and page numbers to a PDF?
Can I add a header and page numbers to a PDF?
Yes, open the ••• menu of Create PDF and turn on Header and footer or Page numbers under Settings. Page numbers can be 1, 2, 3, 01, 02, 03, a, b, c, A, B, C, i, ii, iii, or I, II, III. Use Start at to begin with any number.
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: create_pdf in the developer docs →
Still have questions? Find answers and get help from community experts in the Tape community →
