SDK transfert data from gateway to perspective

Hi @PGriffith

to obtain the sessionId

String sessionId = InternalSession.SESSION.get().getSession().getSessionId().toString();

work fine.

But if I need to obtain the pageId, I’ve tried:

String pageId = InternalSession.SESSION.get().getSession().getPage().getId().toString();

or

String pageId = InternalSession.SESSION.get().getPage().getId().toString();

But both of them are triggering a java.lang.NullPointerException: null

Did I missed something ?

I try to guess in a script function the sessionId and pageId to keep distinct data for multiple sessionId/pageId.