I have a edit Fields then a Gmail get many messages and an if statement. The edit fields creates a value but when I use the value in the if statement it says undefined. If I skip the get many messages the value works. How do I get a variable I set with edit fields to go through all the workflow?
hey @tna331 welcome to n8n community!
could you share your workflow so we can understand error better?
here is how you can share your workflow.
I am new to n8n in this workflow I wanted it to check for a specific email and if its not there to try again after waiting for 5 times. The problem is when I use the gmail instruction I can’t use my variables that I have in the “edit fields” If there is a better way to do this please let me know.
the problem was you were accessing variable using {{$json.myvalue1}} but you can not access using json.value after a other node. you need to give absolute path like: {{ $item("0").$node["Edit Fields"].json["myvalue1"] }}
I have updated variables in flow here try them and let me know:
If this solves your issue do mark this response as solution.
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.