---
schema_version: "1"
id: 9eef6ab3658c53b3dc5e4154235f134f0daf3620f72fb40ea949ee8201cad937
title: Hosting Vlocity Templates On An External Server (Managed Package)
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/xcloud/264-0-0/os_hosting_vlocity_templates_on_an_external_server.md
canonical_url: https://help.salesforce.com/s/articleView?id=xcloud.os_hosting_vlocity_templates_on_an_external_server.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 8593a6999e84bbf02e80c119920bc5563c64a4aea70a8796aecb5c5ec904898f
description: For the managed package runtime, host Vlocity Templates on external servers.
products:
  - Omnistudio
release: "264"
---
# Hosting Vlocity Templates On An External Server (Managed Package)

For the managed package runtime, host Vlocity Templates on external servers.

![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. Set up the [Vlocity Build](https://github.com/vlocityinc/vlocity_build#getting-started) tools.
2. Create your Vlocity Templates in a Salesforce org.
3. Extract the Vlocity Templates from Salesforce by setting up a job to point at the required resources. Look at the examples posted in the [Vlocity Build Tools step-by-step guide](https://github.com/vlocityinc/vlocity_build#simple-export).
    
    Use prefixes, as shown in the following query to get the templates from the org and make sure they are active:
    
    ```
    queries:
    - VlocityDataPackType: VlocityUITemplate					
    Select Id, Name from %vlocity_namespace%__VlocityUITemplate__c where
    Name LIKE 'card-out-%' AND %vlocity_namespace%__Active__c = true
    ```
4. At a command prompt, run:
    
    ```
    vlocity packExport -propertyfile build.properties -job dataPacksJobs/job-name.yaml
    ```
    
    The templates you queried appear in the expansionPath folder in the DataPack.
5. If you need to make changes to the templates:
    
    1. Edit the templates using your favorite IDE and store them in source control.
    2. Run the packBuildFile job to compress the resources to a DataPack that will be stored in the buildFile directory.
6. Upload the DataPack to your desired location.
7. Use the configService.loadCardframeworkDefinitions function to load your DataPack into the Cards Framework.