- 17 Mar 2026
- Print
- DarkLight
- PDF
Using a Merge Field in a Link
- Updated 17 Mar 2026
- Print
- DarkLight
- PDF
Create links in Deliver mailings and System Emails where the destination URL is set by a merge field — useful for personalized login URLs in account registrations, password resets, and recommendation requests.
📖 Further reading
Learn how to customize links with query string parameters.
Creating a merge field link in a Deliver mailing
🔔 Important: Always link plain text, not merge fields
Don't insert a merge field directly into the message body and then hyperlink it to itself — for example, inserting login-link as visible text and setting login-link as the URL. Deliver rewrites links for click-tracking, so if the visible text looks like a URL (e.g., university.edu) but the destination is different (e.g., mx.technolutions.net), email clients may flag the message and reduce deliverability.
Set up the subquery export
It’s generally recommended to create a subquery export to formulate the full text of your link. This allows you to include record-specific data points in a URL while referencing only a single merge field in link construction later. Skip to Add the merge field link to your message if your merge field is already available — for example, in most system emails.
Go to Deliver.
Select an existing email message, or create a new one.
Select Edit Recipient Lists.
Configure the recipient list as needed.
In the recipient list query, select Subquery Export.
Configure the following:
Name: Enter a descriptive name, like
login-link.Type: Dependent subquery
Output: Concatenate
Exports: Create two exports:
Literal: A literal representation of the desired URL up through the query string parameter, like
https://apply.slate.edu/account/login?id=.Export: Select the unique ID to be appended to the literal.

Select Save.
📝 Note:
The example above hard-codes the protocol (https://) in the literal. Whether you do so is up to you — but your choice here affects how you configure the link protocol in the next section.
Add the merge field link to your message
Use the breadcrumb navigation to return to the message overview page.
Select Edit Message.
Select the link icon, or press Ctrl/Cmd + K.
Configure the following settings:
Display text: Enter the link’s display text.
Link type: URL
Protocol:
<other>URL: Enter the merge field for the link, for example
{{login-link}}

Select OK.
Configure the remaining message text, then select Save.
📝 Note:
Select <other> as the protocol in Step 4 above if your subquery export already includes a hard-coded protocol like
https://. Otherwise, select the appropriate protocol from the list.
