---
schema_version: "1"
id: 0f9ea817a58f1db276b432b3550caf0420cb911be8b91b942cc747c238b6353f
title: Create the Email Template With the Omniscript Link (Managed Package)
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/xcloud/264-0-0/os_creating_the_email_template.md
canonical_url: https://help.salesforce.com/s/articleView?id=xcloud.os_creating_the_email_template.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 2077720e7c69cd03d92897c09057d3ada8593b198c8f3d349456165a73e6da2d
description: For the managed package runtime, define an email template containing the desired text, which includes a link to the Omniscript. The email template type must be Custom (without using Letterhead).
products:
  - Omnistudio
release: "264"
---
# Create the Email Template With the Omniscript Link (Managed Package)

For the managed package runtime, define an email template containing the desired text, which includes a link to the Omniscript. The email template type must be **Custom (without using Letterhead)**.

![Managed Package app icon](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-xcloud-omnistudio_for_managed_packages-264-0-0-production-enus/aa2554ec-624a-4ee6-8da4-6435670e6e62/resources-global/_corporate/images/managedpackageicon.png) This information is for Omnistudio for Managed Packages. For Omnistudio on standard runtime, see [Omnistudio Help](https://help.salesforce.com/s/articleView?id=xcloud.os_omnistudio_standard.htm&language=en_US).

1. Determine the Omniscript link. See the URL examples in [How to Launch (Managed Package)](https://help.salesforce.com/s/articleView?id=xcloud.os_how_to_launch.htm&release=264.0.0&type=5 "For the managed package runtime, make an active Omniscript available for launch in one of four ways: as a standalone Lightning web component in a Lightning page, as an embedded link in another LWC, as a URL, or using an Aura wrapper.").
2. Go to the Email Templates tab, and click **New Email Template**.
3. In the **Email Template Name** field, type a name such as Omniscript Email Template.
4. Enter a **Subject** line.
5. In the **HTML Value** field, enter the text of the email, including the Omniscript link.
    
    Use Salesforce-style variables (formatted as `{!object.field}`) to incorporate Salesforce data, and Omnistudio-style merge fields (formatted as `%fieldname%`) to incorporate data provided by the Integration Procedure with the Email action.
    
    For example:
    
    ```
    Hi, {!Contact.Name}:
    
    Here's a link to the OmniScript you requested:
    
    https://MyDomainName--c.vf.force.com/lightning/cmp/my_org__vlocityLWCOmniWrapper​?c__target=my_org:%Type%%Subtype%English&c__layout=lightning
    
    Thanks,
    %SenderName%
    ```
6. Click **Save**.