In custom data, we need to pass a user authentication token. We tried but were unable to access the custom variable, in which we declared how to access custom data variables in the service node. As mentioned in the document, we tried to access **customDatafrom lastMessage under the BotUserSession of the context object, but I got an undefined value kindly assist on this.
Local SDK file:
@abishekkumar
There is a troubleshooting technique that may help you.
In the bot,
Either in a script add something like koreDebugger.log(JSON.stringify(context));
This will help you see the debug information under Debug Logs (Analyze section > Task execution failures)
Or in a message node, in advanced JS, write something like print(JSON.stringify(context));
It will show you the entire context. You can use some JSON path finder to see where you can find the customData key/value.