Thingworx REST CALL to obtain the full URL containing session id and mashup name
Hi all,
I'm currently trying to trace down the usage from some mashups. The idea is to create an extension containing js code that will be triggered whenever index.html > CombinedExtension get called. This will happen everytime any user opens any mashup (which is desired). It will contain (user, datetime, mashupname, current session id). Does anyone know how to obtain the current session id and also current mashup and master mashup name from the opened mashup (see the url below).
There is a suggestion to use Function > Expression to call TW.location.href, which actually works only in Thingworx runtime. But if using this I need to create this function expression in every mashup and I have dozens of them. I will try to implement it in a deeper layer which is via extension and for this I need to use REST call, is there a way to call a Function > Expression > TW.location.href via REST Call? I tried to call TW.location.href from outside Thingworx runtime and failed 😞 It's also fine if there is a syntax that can get the same result via service or similar.
e.g. https://thingworx-server/Thingworx/Runtime/index.html?mashup=MashupName&forceClose=true&__enableBM...8587fe65-9d60-4cb0-bbcb-7d41a78d2169&features=#master=MastertemplateName&mashup=&forceClose=true&features=

