How to detect environment?

What is better way to detect production/test environment inside function/expression and get webhook url programatically ?

You can access environment variables via $env.WHATEVER. So if you have something specific set there you can detect it that way.

Do not understand the part with getting the Webhook-URL. You want to get in another node (like a Set-Node) the Webhook-URL of a specific Webhook-Node?

Yes, you are absolutely right.

That is sadly not possible. You would have to hard-code the beginning of the Webhook-URL. The only thing you can read dynamically would be the webhook-path. That one you can ready via the parameter of the node.

1 Like

It would be cool to get this data dynamically to insert the desired collabeck