Variable Scope issue: "empty" workflow when printi...
# 🤝help
r
Variable Scope issue: "empty" workflow when printing result. I build this to fetch event from google API for Date entry by user and store the number of events in workflow.eventcount so can the user know have many event in that date and so i can controle how many event to allow for user. The problem is that printing this workflow variable with a workflow.eventcount outside of the execute node returns null (empty) and the true problem it work perfectly in console and show the number of event even when I store it in workflow.eventcount and display it win console.log.
the code :
w
Hi @rough-pilot-36637 , try to add an waiting time of 1/2s after your code card in another code card
I'm not sure, but let me lnow if it works
r
First i detected the problem it was the async function because that problem it was happend to me in any executed card witg async function after that i try to add awaiting time after any async fuction and it did not work after that i try to add awating but this time in new execute code after any other execute code with async function and it work perfect
So thank you brother and sorry for my english 😁