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

Community Tip - Did you get an answer that solved your problem? Please mark it as an Accepted Solution so others with the same problem can find the answer easily. X

Get Description of Sub Unit

Giuseppe_Fiore
15-Moonstone

Get Description of Sub Unit

Hello,

I have created an organization with 3 Sub Organizations,

Home.JPGtest1.JPG

  

test2.JPG


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

1 ACCEPTED SOLUTION

Accepted Solutions
AnnaAn
13-Aquamarine
(To:Giuseppe_Fiore)

Giuseppe Fiore​,

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

View solution in original post

3 REPLIES 3
AnnaAn
13-Aquamarine
(To:Giuseppe_Fiore)

Giuseppe Fiore​,

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


AnnaAn
13-Aquamarine
(To:Giuseppe_Fiore)

Giuseppe Fiore​,

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

Top Tags