Skip to main content
pshashipreetham
19-Tanzanite
Apr 13, 2023 7:54 AM UTC
Question

Get Services used in a Mashup

Hi,

Is there a way to get service names that are used in a Mashup? Is there any snippet in Thingworx for this requirement?

 

Thanks,

 

5 replies

22-Sapphire I
Apr 13, 2023 12:09 PM UTC

If you export the mashup to xml you can find them in the xml

You can also pull the definition from the persistence provider, it would then be in JSON

There are no snippets

Translate
pshashipreetham
19-Tanzanite
Apr 14, 2023 5:08 AM UTC

Hi @PaiChung ,

 

Mashup Data is stored somewhere in DB, that's how it loads all the services and bindings when we edit a mashup in the composer , isn't it?

Or Mashup's are stored in the form XML only in DB ?

 

Thanks,

Translate
Shashi Preetham || +91 8099838801 || shashi@psptechhub.com
17-Peridot
Apr 14, 2023 6:43 AM UTC

Hello,

 

There is a table called: mashup_model in the Thingworx platform DB model.

In this table you can find you mashup using the "name" column and you can find the service definitions in the "mashupContent" column as a JSON.

 

For this you would need to know the name of your thing though as the mashupContent JSON contains a bunch of other things as well.

 

There are also some Entities service definition tables as well, however I couldn't find the definitions for my test mashup there but you might have better luck.

I'm not entirely sure that this way would be recommended by PTC though, so do it at your own risk.

 

Regards,

Jens

Translate