Hi, when I send API request with an execute code c...
# 💻developers
t
Hi, when I send API request with an execute code card, I receive a value and I display it on the Log section with the console.log and assign the received value to the workflow variable. However, when I check the value of the workflow variable on the variable window I see its default value (which is "non" in my case). I also added a text card to the same node right after the execute code card and tried to display the value of the workflow variable in the chat to the user. and it shows "non". Without refreshing the session, I'm repeating this exact process, now the value of the workflow variable takes the old value (whatever was received from the API endpoint in the previous request). However, it is crucial to display to the user the value of the request at that moment not the value of the previous request. Does someone know the solution for this? I'm using async function maybe that causes the problem? Again, I see the value of the workflow variable I'm supposed to see in the log section but not in the variable window or in the chat section.