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

Community Tip - When posting, your subject should be specific and summarize your question. Here are some additional tips on asking a great question. X

Is it possible to create/add a dynamic organization(Programatically) in Thingworx

jk-3
10-Marble

Is it possible to create/add a dynamic organization(Programatically) in Thingworx

I have to create/add Organization programatically. Is that possible to add so.

ACCEPTED SOLUTION

Accepted Solutions
posipova
20-Turquoise
(To:jk-3)

HI, the following service would create an Organizatio with a Parent and a child unit:

var par = {

   

                topOUName: Parent /* STRING */,

                name: Parent /* STRING */,

};

// no return

Resources["EntityServices"].CreateOrganization(par);

   

    var params = {

  name: Child /* STRING */,

  parentName: Parent/* STRING */

};

// no return

Organizations[Parent].AddOrganizationalUnit(params);

View solution in original post

3 REPLIES 3

Yup

Resources["EntityServices"].CreateOrganization

posipova
20-Turquoise
(To:jk-3)

HI, the following service would create an Organizatio with a Parent and a child unit:

var par = {

   

                topOUName: Parent /* STRING */,

                name: Parent /* STRING */,

};

// no return

Resources["EntityServices"].CreateOrganization(par);

   

    var params = {

  name: Child /* STRING */,

  parentName: Parent/* STRING */

};

// no return

Organizations[Parent].AddOrganizationalUnit(params);

jk-3
10-Marble
(To:posipova)

Thanks

Announcements


Top Tags