3 Replies Latest reply on Jul 9, 2017 9:46 PM by anna RSS
    gfiore Newbie

    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

      • Re: Get Description of Sub Unit
        anna Creator

        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