I am using trial org with omnistudio inbuilt and hence on standard runtime. I am not able to import the omnistudio related packages in my .js file , for example import OmniscriptDate from 'omnistudio/OmniscriptDate' gives error to me. I have a requirement to use a custom lwc for a date validation, now I am able to the validation perfectly but not able to pass the data from LWC to omniscript. I have tried Custom events as well. Below is the code snippet: sendValueToOmniScript(valueToSend) {
console.log('sent value1',valueToSend);
const payload = {
elementId: 'SinceWhen',
SinceWhen: valueToSend,
omniJsonData: {
SinceWhen: valueToSend
},
SinceWhen: { value: valueToSend }
};
console.log('payload',JSON.stringify(payload));
this.dispatchEvent(new CustomEvent('omniaggregate', {
bubbles: true,
composed: true,
detail: payload
}));
}