Facing a strange issue in omnistudio, I have a omniscript which shows some options, check box based on some scenario, I am calling this from a button (though omniscriprt has two url to launch Newport URL and Lightning URL, I dont know the difference) when some conditions doesn't match, it is showing the error screen which is absolutely fine, but when all condition is matching it is not showing the step which needs to be shown, the same script when I am running in Preview mode, it is working fine, which may cause this issue? I am new to omniscript/omnistudio any suggestions on how to debug this issue or any guidance will be helpful.
Omniscript behaves differently in Preview mode compared to when it is deployed. For example, certain Salesforce components or configurations might not be active in Preview mode. Make sure that the Omniscript is active and properly configured for deployment.
- Omniscripts can be launched using Newport URL or Lightning URL. The Newport URL is typically used for standalone deployments, while the Lightning URL is for launching within the Salesforce Lightning environment. Verify that the correct URL is being used based on your deployment scenario.
- Use the browser's developer tools to check for any errors in the console when the Omniscript is launched from the button.
- Review the data JSON being passed to the Omniscript to ensure it matches the expected format.
Reference:
https://help.salesforce.com/s/articleView?id=xcloud.os_how_to_launch_19862.htm&type=5
https://help.salesforce.com/s/articleView?id=xcloud.os_omniscript_best_practices_8368.htm&type=5
https://www.youtube.com/watch?v=MgVSa8ksglo&t=187sHope this helps. Thanks!