cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Your Friends List is a way to easily have access to the community members that you interact with the most! X

Add Visibility Permission - Thingworx 9.1

Sathishkumar_C
17-Peridot

Add Visibility Permission - Thingworx 9.1

I am trying to add visibility permission programmatically in thingworx 9.1.

Facing following err:

Message :: TypeError: Cannot call method "AddVisibilityPermission" of null 

2 REPLIES 2
nmutter
14-Alexandrite
(To:Sathishkumar_C)

This kind of error appears if the object you are trying to AddVisibility to cannot be found. Check if the entity exists you call the service on.

 

E.g. Things["DoesNotExistInYourInstance"].AddVisibilityPermission(); will fail with the error you experience. But Things["SystemRepository"].AddVisibilityPermission(); will result in an error that parameter is missing.

Hi @Sathishkumar_C ,

It seems like the permission have not applied successfully. You can refer the attached article for your reference. 

https://www.ptc.com/en/support/article/CS236180

Feel free to reach out if you still face the issue.

 

Regards

Bhawna

Top Tags