Community Tip - Did you know you can set a signature that will be added to all your posts? Set it here! X
I am trying to add visibility permission programmatically in thingworx 9.1.
Facing following err:
Message :: TypeError: Cannot call method "AddVisibilityPermission" of null
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