# Perspective Message Handler not able to pass the payload

**URL:** <https://forum.inductiveautomation.com/t/perspective-message-handler-not-able-to-pass-the-payload/101884>\
**Category:** Ignition\
**Tags:** scripting, ignition81, perspective\
**Created:** [February 5, 2025, 5:54am UTC](https://forum.inductiveautomation.com/t/perspective-message-handler-not-able-to-pass-the-payload/101884 "2025-02-05T05:54:48Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Learner\_Ignition](https://avatars.discourse-cdn.com/v4/letter/l/b3f665/32.png) [@Learner\_Ignition](https://forum.inductiveautomation.com/u/Learner_Ignition)\
**Post date:** [February 5, 2025, 5:54am UTC](https://forum.inductiveautomation.com/t/perspective-message-handler-not-able-to-pass-the-payload/101884/1 "2025-02-05T05:54:48Z")

</div>

Hi,

I have an icon in the table component where alarms are displayed. When I click on the icon, I navigate to a different view based on the configured alarm (by changing the path of the embedded view) and send the tag name as a payload.

When navigating to another main view, I have an embedded template view that highlights the component for which the alarm was triggered.

I have written an **OnMessageReceived** script to receive the payload in the template view, but I am not receiving any payload there.

I tried troubleshooting with multiple print statements, but nothing is being printed in the **OnMessageReceived** script.

The scope of the message handler is set to **Page**.

Any suggestions would be helpful.

---

<div class="post-metadata">

**Author:** ![ryan.perretta](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/ryan.perretta/32/75110_2.png) [@ryan.perretta](https://forum.inductiveautomation.com/u/ryan.perretta)\
**Post date:** [February 5, 2025, 1:54pm UTC](https://forum.inductiveautomation.com/t/perspective-message-handler-not-able-to-pass-the-payload/101884/2 "2025-02-05T13:54:04Z")

</div>

If you are using an embedded view, I would just pass the necessary information for each alarm in as a parameter (`params` prop on the component). Anything you are passing via the payload of this message, you can just set as parameters for the view. Then in the script that is switching the embedded view path I would also change the values of the `params` property.

This way you don't have to worry about throwing this message out over here and catching it over there.
