# Gateway Event Timer sendMessage not work

**URL:** <https://forum.inductiveautomation.com/t/gateway-event-timer-sendmessage-not-work/71946>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [April 2, 2023, 12:55pm UTC](https://forum.inductiveautomation.com/t/gateway-event-timer-sendmessage-not-work/71946 "2023-04-02T12:55:36Z")\
**Posts on this page:** 1\
**Showing post:** 3

<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:** [April 2, 2023, 1:03pm UTC](https://forum.inductiveautomation.com/t/gateway-event-timer-sendmessage-not-work/71946/3 "2023-04-02T13:03:20Z")

</div>

You can't use `system.perspective.sendMessage()` outside of Perspective scripts. Gateway events are outside of Perspective. You must use `system.util.sendMessage(...., scope='S')` to deliver to a perspective session message handler, which can then relay with `system.perspective.sendMessage()` to the actual perspective scope you wish to target (if not session).

See this discussion:

> [@Set/Configure tag binding with script in Perspective](https://forum.inductiveautomation.com/t/set-configure-tag-binding-with-script-in-perspective/68906/13):
>
> So, to get this to work I had to make a handler in the project's "Session Events" to receive from system.util.sendMessage(..., scope='S'). It then just calls system.perspective.sendMessage(..., scope='session') with the same payload. The component can receive this latter broadcast. This is a nuance that should be put in the documentation. (That messages broadcast to Perspective via system.util.sendMessage(..., scope='S') can only be received in "Session Events".)

---

_[View the full topic](https://forum.inductiveautomation.com/t/gateway-event-timer-sendmessage-not-work/71946)._
