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

Community Tip - You can subscribe to a forum, label or individual post and receive email notifications when someone posts a new topic or reply. Learn more! X

How to create organization branches via script

randomName
4-Participant

How to create organization branches via script

Is there a way to create organization branches via scripting?

I know I can create top level organization via following snippet:

var params = {
  topOUName: "customer"/* STRING */,
  name: "customer"/* STRING */,
  description: undefined /* STRING */,
  topOUDescription: undefined /* STRING */,
  tags: undefined /* TAGS */
};

// no return
Resources["EntityServices"].CreateOrganization(params);

 

But is there a way to create branches also via script? See attached picture (branch1 & branch2).

1 ACCEPTED SOLUTION

Accepted Solutions

@randomName ,

 

You can use this service:

 

Organizations["MyOrg"].AddOrganizationalUnit({
	parentName: undefined /* STRING */,
	name: undefined /* STRING */
});

 

Hope that helps

--Nick

View solution in original post

1 REPLY 1

@randomName ,

 

You can use this service:

 

Organizations["MyOrg"].AddOrganizationalUnit({
	parentName: undefined /* STRING */,
	name: undefined /* STRING */
});

 

Hope that helps

--Nick

Top Tags