For the managed package runtime, use the omniGetSaveState() function to retrieve
custom component data from an Omniscript.
This information is for Omnistudio for Managed Packages. For Omnistudio on standard runtime, see Omnistudio Help.
omniGetSaveState(key): The omniGetSaveState accepts a key
as an optional argument. If a key is not sent, the key defaults to the name of the custom
component. The key stores the data from the omniSaveState()
function.
Example
With a key argument:
let key = 'customLwcKey';
const state = this.omniGetSaveState(key);
With no key:
// assumes the data is inside of the same custom component
const state = this.omniGetSaveState()