# Passing SessionId and PageId in SFC

**URL:** <https://forum.inductiveautomation.com/t/passing-sessionid-and-pageid-in-sfc/89674>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [April 30, 2024, 1:11am UTC](https://forum.inductiveautomation.com/t/passing-sessionid-and-pageid-in-sfc/89674 "2024-04-30T01:11:09Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bharat\_Krishnan](https://avatars.discourse-cdn.com/v4/letter/b/2acd7d/32.png) [@Bharat\_Krishnan](https://forum.inductiveautomation.com/u/Bharat_Krishnan)\
**Post date:** [April 30, 2024, 1:11am UTC](https://forum.inductiveautomation.com/t/passing-sessionid-and-pageid-in-sfc/89674/1 "2024-04-30T01:11:09Z")

</div>

I am trying to use the system.perspective.navigate () in an action block of an SFC to navigate through views, it returns an error "No perspective session attached to this thread".  
Is it possible to read the sessionId and pageId in SFC? Is there an another way to do this?

---

<div class="post-metadata">

**Author:** ![calimero100582](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/calimero100582/32/18630_2.png) [@calimero100582](https://forum.inductiveautomation.com/u/calimero100582)\
**Post date:** [April 30, 2024, 11:03am UTC](https://forum.inductiveautomation.com/t/passing-sessionid-and-pageid-in-sfc/89674/2 "2024-04-30T11:03:41Z")

</div>

The SFC are running on the gateway and have no link with perspective session

You can either start the SFC from the perspective session, passing the sessionid as an arguments, or from the SFC uses messages to interact with Perspective session (system.util.sendMessage -\> session message handler -\> system.perspective.sendMessage -\> component message handler)

Edit: You can still uses [getSessionInfo](https://docs.inductiveautomation.com/docs/8.1/appendix/scripting-functions/system-perspective/system-perspective-getSessionInfo) to get a list of session and scan them to find the session you want, but interacting with the session will most likely still need to uses sendMessage
