# Setting Node(Pushover) property with dashboard switch

**URL:** <https://discourse.nodered.org/t/setting-node-pushover-property-with-dashboard-switch/42722>\
**Category:** General\
**Created:** [16 March 2021 14:17 UTC](https://discourse.nodered.org/t/setting-node-pushover-property-with-dashboard-switch/42722 "2021-03-16T14:17:20Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![smithy](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/smithy/32/37804_2.png) [@smithy](https://discourse.nodered.org/u/smithy)\
**Post date:** [16 March 2021 14:17 UTC](https://discourse.nodered.org/t/setting-node-pushover-property-with-dashboard-switch/42722/1 "2021-03-16T14:17:20Z")

</div>

Hi

I would like to a use a dashboard switch to set the priority property(msg.priority) of the pushover node. I would like some design guidance please, this is what i'm thinking.

Declare flow/global variable (sensorx\_mp)  
Use dashboard switch to set sensorx\_mp to (1/0)  
Then use a function to build a message object/or use change node to set the msg.payload and msg.priority properties.

Advice greatly appreciated 🙂

Thanks

---

<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:** [15 May 2021 14:17 UTC](https://discourse.nodered.org/t/setting-node-pushover-property-with-dashboard-switch/42722/2 "2021-05-15T14:17:28Z")

</div>

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