# How to set dynamic environment value to amqp-out node?

**URL:** https://discourse.nodered.org/t/how-to-set-dynamic-environment-value-to-amqp-out-node/97390
**Category:** General
**Created:** [3 June 2025 04:08 UTC](https://discourse.nodered.org/t/how-to-set-dynamic-environment-value-to-amqp-out-node/97390 "2025-06-03T04:08:31Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Lin-Pyae](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/lin-pyae/32/101179_2.png) [@Lin-Pyae](https://discourse.nodered.org/u/Lin-Pyae)
#### Post date: [3 June 2025 04:08 UTC](https://discourse.nodered.org/t/how-to-set-dynamic-environment-value-to-amqp-out-node/97390/1 "2025-06-03T04:08:31Z")

</div>

I have amqp-out node which has static value for now. But I want to set those values into dynamic values by getting values from global context. Those Host, Port and Vhost fields only accept string value in that node. So, I'm having difficulties setting dynamic values.

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/3/8/38f382ec73b764ea6002358fada2c42a29b21c70.png)

---

<div class="post-metadata">

### Author: ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)
#### Post date: [3 June 2025 07:51 UTC](https://discourse.nodered.org/t/how-to-set-dynamic-environment-value-to-amqp-out-node/97390/2 "2025-06-03T07:51:23Z")

</div>

If the node does not support sending those properties in the message (check the help text for the node) then you can't do that. You should be able to use environment variables though. But that does not give true dynamic values as the value can't be changed after node-red is started.

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)
#### Post date: [1 September 2025 07:52 UTC](https://discourse.nodered.org/t/how-to-set-dynamic-environment-value-to-amqp-out-node/97390/3 "2025-09-01T07:52:01Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
