Test and Validate via Preview
Before publishing, you must test and validate your function with real store data using the preview panel.
1.
In the function editor, click Select Store in the preview panel and choose your demo store.
2.
Enter a test value in the preview parameters (for communication events, this is usually a message or customer ID). Then, click Save and Preview.
The preview panel will display the execution status, the response data returned by your function, execution time, console.log() outputs, and detailed error traces if the function failed.Verify that your settings values are populated. If context.settings is empty, it means you have not yet filled in the App Settings form on your demo store.