How can I get a variable from another node on exit...
# 🤝help
b
I am greeting the user then sending them to a new flow to answer a couple of questions. after those are saved in variables I am trying to send them on exit and they are, indeed received by the main flow in the form of an object. However, when I try to retrieve it either via deconstructing (const { userCurrentMood, userReasonsForMood } = recordUserMoodFlow ) or dot notation (workflow.userCurrentMood = recordUserMoodFlow.userCurrentMood) I get the error in the image. How can I get those variables?

https://cdn.discordapp.com/attachments/1140671977577787502/1140671977846214828/image.png

https://cdn.discordapp.com/attachments/1140671977577787502/1140671978081099867/image.png

h
You need to use a User variable.
b
@helpful-kilobyte-18816 I tried but I can't get them to show ever which is why I am using workflow variables for everything. I set them under Botpress Logo > Variables > User Variables but then they never get filled
h
You need to use an execute card to populate the user variable.
b
got it working with your reply, thanks
47 Views