You are here:
Update Omniscript Custom Lightning Web Components and Omniscript Elements Overridden with Customized Components
Migrate all custom Lightning web components that extend the omniscriptBaseMixin component or use a standalone component and all customized Omniscript elements that have overridden components from the managed package runtime to the standard runtime. This is a manual step.
Before you begin, set up your environment and deploy your custom components in the org before migrating Omniscript components. See Set Up Your Environment for Customizing Omniscript Components.
Update the namespace in the HTML, JavaScript, and meta.xml files of all overridden Omniscript managed package components from the managed package’s namespace to the c namespace in the standard runtime.
Change these managed package namespaces to
c:
omnistudiovlocity_insvlocity_cmtvlocity_ps
-
Go to the
lwcfolder that has all your customized Omniscript elements. -
For each customized Omniscript element, in the HTML file, replace the managed
package namespace with the
cnamespace.For example, this code shows the contents of the customomniscriptText.html file with theomnistudionamespace:
This code shows the contents of the customomniscriptText.html file after changing the<template> <omnistudio-input><omnistudio-input> </template>omnistudionamespace with thecnamespace:<template> <c-input><c-input> </template> -
In the JavaScript files, replace the managed package namespace with the
cnamespace.Most of these changes are related to module import.For example, this code shows the contents of the customomniscriptText.js file with theomnistudionamespace:
This code shows the contents of the customomniscriptText.js file after changing theimport OmniscriptText from 'omnistudio/omniscriptText'; import tmpl from './customomniscriptText.html'; export default class CustomOmniscriptText extends OmniscriptText { render() { return tmpl; } }omnistudionamespace with thecnamespace:import OmniscriptText from 'c/omniscriptText'; import tmpl from './customomniscriptText.html'; export default class CustomOmniscriptText extends OmniscriptText { render() { return tmpl; } } -
Remove this line from the meta.xml file of your custom
component:
<runtimeNamespace>devopsimpkg11</runtimeNamespace>For example, this code shows the contents of the customomniscriptText.js-meta.xml file before the change:
<?xml version="1.0" encoding="UTF-8"?> <LightningComponentBundle xmlns="http://soap.sforce.com/2006/04/metadata" fqn="omniscript"> <apiVersion>60.0</apiVersion> <isExposed>true</isExposed> <runtimeNamespace>devopsimpkg11</runtimeNamespace> <masterLabel>Custom LWC test</masterLabel> </LightningComponentBundle>This code shows the contents of the customomniscriptText.js-meta.xml file after change:
<?xml version="1.0" encoding="UTF-8"?> <LightningComponentBundle xmlns="http://soap.sforce.com/2006/04/metadata" fqn="omniscript"> <apiVersion>60.0</apiVersion> <isExposed>true</isExposed> <masterLabel>Custom LWC test</masterLabel> </LightningComponentBundle> - Deploy each custom component to the org by using Visual Studio Code or Salesforce CLI:
- Update all Omniscript Action framework calls to run in the standard runtime.
-
Verify that the migration is successful.
- From Setup, in the Quick Find box, enter Lightning Components, and then select Lightning Components.
- Make sure that the Namespace Prefix field is blank for the custom components that you migrated.

