Create and use merge fields

Updated

Who can do this: Anyone who can edit the playbook, module or task

A merge field is a placeholder, such as {{account.account_name}}, that OnRamp fills in with real data from the project. Use merge fields to personalize playbook content without editing each project by hand.

Insert a merge field

  1. In a text editor, such as a task description, type / to open the command menu.

  2. Select Merge Field.

  3. In Search merge fields, enter part of a field's name to filter the list.

  4. Select a field, or use the arrow keys and press Enter.

The list is grouped:

  • Merge Fields: fields already defined on this playbook, module or task. A defined field appears here, not under its Project, Account or Owner group.

  • Project Fields: Project Name, Start Date, End Date, Progress, Completed Date and your project data fields.

  • Account Fields: Account Name, Created Date and your account data fields.

  • Owner Fields: the project owner's Name, First Name, Last Name, Email, Title, Phone Number and user data fields.

Picking a Project, Account or Owner field defines it and inserts it in one step. It's named after what it points to, such as project.project_name, owner.full_name or account.account_name. A user data field is named owner. plus the data field's name in lowercase with underscores. For example, a field named Call Booking Link becomes owner.call_booking_link.

A field picked this way is always added as a Live value. You can change that afterwards on the Merge Fields tab.

Where you can use merge fields

In a playbook, module or task, you can insert merge fields in:

  • The playbook name, description and welcome message

  • Task names and descriptions

  • Subtask names and descriptions, text instructions and forms

  • An Embed subtask's Source URL and Source HTML fields

  • Module names

Inside an existing project, you can insert them in a task's name and description from the task drawer, a module's Module Name, the project name and description, and the portal Project Welcome Message. A field you pick inside a project is added as live. Merge fields the project already has keep their original setting.

Embed subtasks

In an Embed subtask, select Insert merge field or type {{ in Source URL or Source HTML. This picker lists only merge fields already defined on the playbook, module or task. It doesn't offer the Project, Account or Owner groups, so define the field first on the Merge Fields tab. Embed subtasks inside a project don't offer merge fields.

Create a merge field on the Merge Fields tab

The Merge Fields tab is the only place to create a fixed-text field.

  1. Open the playbook, module or task, and go to its Merge Fields tab.

  2. Select Add Merge Field.

  3. In Field Name, enter a name. The name is saved in lowercase, spaces become underscores, and any character other than letters, numbers, underscores and periods is removed. The result shows under Will be saved as.

  4. Under Default Value, choose Fixed or System.

    • Fixed: enter the text.

    • System: choose an Object Type, then a Field.

  5. For a System field, choose how it Resolves.

  6. Select Confirm.

The field appears in the tab's list, with its setting in the Resolves column.

Choose when a field resolves

Each merge field has one of two settings:

  • Value at project creation (the default): the value is captured once, when the project is created, and stays as it was.

  • Live value: the field stays in the content and follows the project's current data.

The Resolves setting appears only when Default Value is System. A Fixed value always resolves at project creation.

Progress and Completed Date are always live. Their Resolves setting is locked to Live value.

Changing a field's setting affects projects created afterwards. Projects created earlier keep the values they captured.

When you edit content, every merge field shows as a pill. Inside a project, the pill shows the project's current value when there is one, and otherwise shows the token. In a playbook, module or task, the pill shows the token.

Edit or delete a merge field

  1. On the Merge Fields tab, select a row to edit the field.

  2. To delete a field, select the trash icon, then confirm in Delete Merge Field.

Deleting a field also removes it from the content that uses it. You can't edit or delete fields on a read-only playbook version.

Fill merge fields when a project is created

Merge fields can use project data, account data, project owner details, data fields filled from your CRM, and fixed text.

  • When you create a project from a playbook by hand, you're asked to enter values for each custom merge field. See Creating a new project in OnRamp.

  • A workflow's Project Merge Fields step sets each merge field's value when it creates a project. The value can be fixed, come from a system field, or come from the trigger record. See Automating project creation with workflows.

If a merge field shows blank or as a raw token, see Troubleshooting blank or broken merge fields.

More in Playbooks