You are here:
Run OmniOut in Development Mode
View and test your Omniscript and Flexcard before adding it to your application by running it in development mode. Use a jsForce connection to request data from your org.
Before You Begin
See jsForce on GitHub.
-
Download your Lightning web component and add it to OmniOut. For Omniscripts, see Add an Omniscript Lightning Web Component to OmniOut. For Flexcards, see Add a Flexcard LWC to OmniOut.
-
To enable a Salesforce API connection from your app, create a Salesforce Connected App. See Create a Connected App for OmniOut.
To run OmniOut in development mode, perform these tasks.
-
In the .src/index.html file, locate
function JSForceConnectionExample(). -
In the
const connectionobject, enter the Salesforce Connected App's access token and instance URL. See Access Token.const connection = new jsforce.Connection({ // Set your jsForce configuration here accessToken: '', instanceUrl: '' });
- Set this.namespace equal to the namespace of your package namespace. To find your namespace, see View the Namespace and Version of Managed Packages.
- Save your file.
-
In the terminal, run the
npm run watchcommand.
What’s next: Move OmniOut to Your App.
