Skip to main content
10-Marble
Apr 23, 2024 12:53 AM UTC
Question

Pass a query parameter from URL to master

How to pass a query parameter from URL to Thingworx Master? I know we can set a mashup parameter, but is there a possibility to send this mashup parameter to master before the master loads?
Also, is there a way to load the master after the service in contained mashup has been completed?

Thanks,
Su

4 replies

19-Tanzanite
Apr 23, 2024 6:35 AM UTC

Hi @suraj_visvesh 

 

You can pass default value for Mashup Parameter in URL

 

For example : If you have a Mashup Parameter named "thingName" and if you want to load/set default value for it.

You can set value while accessing URL - <<THINGWORX>>/Mashups/TestMashup?thingName=TestThing

 

/VR

Translate
10-Marble
Apr 23, 2024 10:53 AM UTC

Hi @Velkumar,

Yes I know we can get a parameter for a mashup, but how do I pass this to master of the mashup? I have a service in master which would require a parameter from the URL.

Thanks,
Suraj

Translate
19-Tanzanite
Apr 23, 2024 11:01 AM UTC

Hi @suraj_visvesh 

 

You can create a session parameter and pass value from child mashup to session. In Master Mashup, you can retrieve value from Session parameters

 

More about Session Parameters - Session Parameters (ptc.com)

 

/VR

Translate