Skip to main content
pshashipreetham
19-Tanzanite
Mar 20, 2024 12:23 PM UTC
Solved

InactivationCheck in GetRunTimePermissionsAsJSON or GetRunTimePermissions

Hi,

 

I am trying to get the Permission of a Thing in JS Code, when you services like GetRunTimePermissionsAsJSON  or GetRunTimePermissions I get the InactivationCheck in the output of the Service.

pshashipreetham_0-1710937117214.png

If I Run the Service from the Thing, by opening and executing it, I can see the data properly. 

pshashipreetham_1-1710937208956.png

 

Thanks,

pshashipreetham
19-Tanzanite
Mar 31, 2024 4:07 PM UTC

Hello,

 

I made a workaround as of now.

  1. Created a service in each thing, which sets GetRunTimePermissionsAsJSON or GetRunTimePermissions data to a dummy property.
  2. Later, I created a Helper Thing, where I made a service that calls/Fetchs all the property data from the Things we set in Step1.

This modified workaround gives me all the Things permissions data.

 

Thanks,

Shashi Preetham || +91 8099838801 || shashi@psptechhub.com

5 replies

Rocko
19-Tanzanite
Mar 20, 2024 3:51 PM UTC

And you made sure there is no group (accidentally) called "InactivationCheck"?

Please also always include which TWX version you are running. (It did work for me on a 9.3.10)

Translate
pshashipreetham
19-Tanzanite
Mar 21, 2024 7:01 AM UTC

Hi @Rocko ,

 

Thanks for quick response, and apologies I missed Thingworx version, as of now Thingworx Version is 9.2.6.

and yes, there is no user group with "InactivationCheck".

Thanks,

Translate
Shashi Preetham || +91 8099838801 || shashi@psptechhub.com
Rocko
19-Tanzanite
Mar 21, 2024 7:29 AM UTC

I don't have a 9.2 around to test, but I've never seen this before. You could try running this with a different user. If it persists, create a ticket with support.

Translate
pshashipreetham
pshashipreetham19-TanzaniteAuthorAnswer
19-Tanzanite
Mar 31, 2024 4:07 PM UTC

Hello,

 

I made a workaround as of now.

  1. Created a service in each thing, which sets GetRunTimePermissionsAsJSON or GetRunTimePermissions data to a dummy property.
  2. Later, I created a Helper Thing, where I made a service that calls/Fetchs all the property data from the Things we set in Step1.

This modified workaround gives me all the Things permissions data.

 

Thanks,

Translate
Shashi Preetham || +91 8099838801 || shashi@psptechhub.com
4-Participant
Apr 1, 2024 10:28 AM UTC

Thank you for sharing your solution with me. You've made a difficult task seem easy

Translate