Community Tip - New to the community? Learn how to post a question and get help from PTC and industry experts! X
Hello,
I have created an organization with 3 Sub Organizations,
it's possible to read the description of each of them?
The result I expect is to be able to have as values:
TEST
TEST1
TEST2
I've tried with Org's services. But I can only get the description of the General Information for the Unit.
Thnx
Giuseppe
Solved! Go to Solution.
To get organization root/sub-unit description,you could use build-in service:
Get root organization description:
var description = Organizations["YOURORGNAME"].GetDescription();
To get sub-unit descritption:
var params = {
name: "SUB-UNIT-NAME" /* STRING */
};
// result: STRING
var result = Organizations["YOURORGNAME"].GetOrganizationalUnitDescription(params);
Hope it helps,
Br,
Anna
To get organization root/sub-unit description,you could use build-in service:
Get root organization description:
var description = Organizations["YOURORGNAME"].GetDescription();
To get sub-unit descritption:
var params = {
name: "SUB-UNIT-NAME" /* STRING */
};
// result: STRING
var result = Organizations["YOURORGNAME"].GetOrganizationalUnitDescription(params);
Hope it helps,
Br,
Anna
Hi Anna,
Thanks for the answer, but I do not find that function, I expect the version of thingworx used is 7.4 .
this is the msg of error.
Cannot find function GetOrganizationalUnitDescription in object com.thingworx.security.organizations.
Thnx
Giuseppe
I tested this with 7.4.0 too.
Could you test again with Administrator user or other user which belongs to Administrators Group?
If it worked, it should be related to the user permission issue.
Thanks,
Br,
Anna