Quantcast
Channel: Error in Calling LWC inside Omniscript - Salesforce Stack Exchange
Viewing all articles
Browse latest Browse all 2

Error in Calling LWC inside Omniscript

$
0
0

Getting below error in calling LWC inside the Omniscript.

enter image description here

below in my LWC

import { LightningElement,track } from 'lwc';import { OmniscriptBaseMixin } from 'omnistudio/omniscriptBaseMixin';import pubsub from 'omnistudio/pubsub';export default class LwcForCraCalculation extends OmniscriptBaseMixin(LightningElement) {    @track jsonData;    renderedCallback(){        //register the pubsub event        pubsub.register('omniscript_step', {            data: this.handleOmniStepLoadData.bind(this),        });    }    handleOmniStepLoadData(data) {        // perform logic to handle the pubsub data from the Step        //console.log('pubsub data -- '+ JSON.stringify(data)  );         this.jsonData = data.omniJsonData ;                 console.log('jsonData -- '+ JSON.stringify(this.jsonData)  );     }}

Viewing all articles
Browse latest Browse all 2

Latest Images

Trending Articles



Latest Images