The IF node sends a thread on the False branch even though the condition is met. You can see that the property is present in the incoming json, the checkbox that the condition is met is ticked, but the thread is sent on the False branch.
Good afternoon, EmeraldHerald. Thank you for responding.
I have attached the data, but I noticed one thing when I started to prepare the example - if the data is written to the Code node and passed to the IF node, everything works as it should, if the IF node gets directly from the webhook - it goes to the wrong branch.
Maybe it makes sense to put a Set node between WebHook and IF?
EmeraldHerald, if you replace {{$json.body.hasOwnProperty("attachments[url]")}} in the condition {{ !!$json["body"]["attachments[url]" }} then it works as expected. Hope this helps you in finding the reasons.
Well, I wouldn’t call it a solution, of course… It is not clear why the data from the webhook goes wrong, although the same data in the Code node leads to the correct path.