# Message handlers on remote tag providers

**URL:** <https://forum.inductiveautomation.com/t/message-handlers-on-remote-tag-providers/100742>\
**Category:** Ignition\
**Tags:** scripting\
**Created:** [January 10, 2025, 6:10pm UTC](https://forum.inductiveautomation.com/t/message-handlers-on-remote-tag-providers/100742 "2025-01-10T18:10:07Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nick\_H1](https://avatars.discourse-cdn.com/v4/letter/n/71e660/32.png) [@Nick\_H1](https://forum.inductiveautomation.com/u/Nick_H1)\
**Post date:** [January 10, 2025, 6:10pm UTC](https://forum.inductiveautomation.com/t/message-handlers-on-remote-tag-providers/100742/1 "2025-01-10T18:10:07Z")

</div>

Hello,

I have 2 edge gateways and 100+ devices connected to a read/write/edit gateway. This read /write/ edit gateway is connected to a read only gateway which is an interface with a couple APIs.

for the 100+ devices that are using Standard Tag Providers, it is easy for me to use a message handler that reaches out to the read only server and and delivers a payload using message handler.

With the 2 edge HMIs, I cannot allow traffic initiated by the edges through the read /write/ edit gateway.

Is there anyway for the message handlers on this tag using the system.util.sendmessage() function to initiate on the read/write/edit gateway instead of locally on the edge?

To summarize, I want to send a payload on tags from edge HMIs to an API on my read only gateway.

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [January 10, 2025, 6:36pm UTC](https://forum.inductiveautomation.com/t/message-handlers-on-remote-tag-providers/100742/2 "2025-01-10T18:36:06Z")

</div>

Not for scripts defined on the tags. Those only run in the origin gateway.

You should be able to configure a gateway tag change event in a project in your central gateway that performs the sendMessage.

---

<div class="post-metadata">

**Author:** ![Nick\_H1](https://avatars.discourse-cdn.com/v4/letter/n/71e660/32.png) [@Nick\_H1](https://forum.inductiveautomation.com/u/Nick_H1)\
**Post date:** [January 14, 2025, 8:11pm UTC](https://forum.inductiveautomation.com/t/message-handlers-on-remote-tag-providers/100742/3 "2025-01-14T20:11:31Z")

</div>

How do refer to associated data on an alarm ?

I have a Boolean that I can have trigger the script in a gateway script.

For example, I am using alarm.getId, alarm.isAcked, etc.

Alarm.getOpsGenie does not work does not work for me, and I am struggling to find documentation.

 ![IMG_5736](https://us1.discourse-cdn.com/inductiveautomation/original/3X/4/4/44e7b23fc46f8aa4197935005fca93943c84b8d5.jpeg)

---

<div class="post-metadata">

**Author:** ![ryan.white](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/ryan.white/32/73193_2.png) [@ryan.white](https://forum.inductiveautomation.com/u/ryan.white)\
**Post date:** [January 14, 2025, 8:46pm UTC](https://forum.inductiveautomation.com/t/message-handlers-on-remote-tag-providers/100742/4 "2025-01-14T20:46:07Z")

</div>

Have you tried `alarm.get("opsGenie")` or `alarm.opsGenie`?

> **[Alarm Associated Data | Ignition User Manual](https://www.docs.inductiveautomation.com/docs/8.1/platform/alarming/configuring-alarms/alarm-associated-data)**
>
> What is Alarm Associated Data
