I've been working with the Microsoft Bot Framework (V.4 - node.js) for a while now and I'm starting to get the hang of things. However, I'm currently trying to figure out a way to use a variable across multiple dialogs. In one of these dialogs I make a JSON request to a REST API to fetch some data. I can use this data anywhere within the dialog, but I want to use this data in another dialog. Is there an easy to to do this?
I also know it's possible to send data along when ending a dialog like so:
return await step.endDialog(#YourDataHere);
But found no option to send data along when starting a new dialog.
I've looked into the example: https://github.com/microsoft/BotBuilder-Samples/tree/master/samples/javascript_nodejs/05.multi-turn-prompt But this only uses 1 dialog.
I've also looked into the code given in V3:
https://docs.microsoft.com/en-us/azure/bot-service/nodejs/bot-builder-nodejs-dialog-manage-conversation-flow?view=azure-bot-service-3.0
Following this link gives a blank page without any help documentation for V 4.
Any suggestions on how to make it so that I can use my data across all the dialogs?