Skip to main content
Mar 31, 2021 10:21 AM UTC
Question

Get name of a service that called method from Script Functions

Hello there,

 

I'm working on ThingWorx Extension and need know name of service that called method from Script Function Library. For example. I have service with name getServiceName() where I call method from Script Function Library that gets name of service and made it uppercase. Output should be GETSERVICENAME. It is possible with Thingworx SDK?

Thank you

2 replies

Apr 6, 2021 8:28 PM UTC

Hi @pStrobl 

 

Can you provide more information around your use case?  We're not really understanding why you would need to call the service name twice.

 

Regards.

 

--Sharon

pStroblAuthor
Apr 26, 2021 11:16 AM UTC

Of course I can, I'm sorry for confusing question. I have service in Thingworx (writeAndBackupData) and I need to call method in Java that will log anything I need. What do I need to know if is possible call that Java method from Thingworx and inside this Java method get service name (writeAndBackupData).


Thank you!