Skip to main content
10-Marble
April 23, 2024
Question

Pass a query parameter from URL to master

  • April 23, 2024
  • 1 reply
  • 1327 views

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

1 reply

19-Tanzanite
April 23, 2024

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

10-Marble
April 23, 2024

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

19-Tanzanite
April 23, 2024

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