1 Reply Latest reply on Feb 3, 2017 8:18 PM by wposner-2 RSS
    wposner-2 Apprentice

    How to create a suborganization via service??

    Does anyone know how to achieve this?

     

    The following code always only seems to create a top level org even though there is an org called MainOrg that I want this new org to exist under:

     

    var params = {

       topOUName: "MainOrg" /* STRING */,

      name: "suborg1" /* STRING */,

      description: "suborg1 /* STRING */,

      topOUDescription: undefined /* STRING */,

       tags:  /* TAGS */

    };

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

     

    Further, how would I create an org two levels down?  So if I have MainOrg and I add suborg1, how do I add a new org underneath suborg1?