Genesys Engage on-premises

 View Only

Discussion Thread View
  • 1.  How do I move CfgPersons using the Java PSDK 8.5?

    Posted 02-06-2015 06:56
    Hello,
    When I create a CfgPerson, I send a RequestCreateObject()
    and it seems to create a Person object in the default Persons folder.

    Supplying it with a folder_dbid as an argument, it creates the above
    conf object in the folder with the dbid specified.

    So far so good.

    However, when I want to move a CfgPerson to another folder, I am expecting to be able to send a RequestUpdateObject with the folder_dbid as an argument.

    However, this does nothing as far as I can tell.

    Is this the expected behaviour or am I doing something wrong?

    I am using the Java PSDK 8.5.

    Many thanks in advance,
    Chai


  • 2.  RE: How do I move CfgPersons using the Java PSDK 8.5?

    Posted 02-23-2015 12:10

    Hi,

    The example below is provided to show how to move subfolder 'test2' from 'parentfolder' to 'newparentfolder'

    1)Get the original parent folder (where 'test2' resides currently)

    CfgFolderQuery parentq = new CfgFolderQuery();
    parentq.Name = "parentfolder";


    2)Get the new parent folder. (Where 'test2' will be moved)

    CfgFolderQuery newparentq = new CfgFolderQuery();
    newparentq.Name = "newparentfolder";


    3) Retrieve the folders...

    CfgFolder parent = confService.RetrieveObject<CfgFolder>(parentq);

    CfgFolder newparent = confService.RetrieveObject<CfgFolder>(newparentq);



    /*Get a list of objectIds stored in the original parent. From here, check each objectID for the type. If its a folder, check its name to ensure you are moving the desired folder. Finally,add this folder to the ObjectIds list for the new parent.

    Save();
    */

    Please open a case to clarify the above instructions in more details if more clarifications are required.
     

    Also pay attention on the article #000050031 "How to move configuration objects from one folder to another using PSDK and AB."

    Roman T



  • 3.  RE: How do I move CfgPersons using the Java PSDK 8.5?

    Posted 08-04-2015 18:05
    Hi,
    Would you know if 8.1 and 8.5 behave the same in terms of allocating an agent or person to a folder that is not the default.
    Thanks
     


  • 4.  RE: How do I move CfgPersons using the Java PSDK 8.5?

    Posted 04-11-2016 14:22
    Chai Ang requested help on moving Person object between folders, Roman Tereschenko answered how to move a Folder object between folders !??


  • 5.  RE: How do I move CfgPersons using the Java PSDK 8.5?

    Posted 04-11-2016 23:15
    I think I forgot to thank Roman. Thank you, Roman :-)
    Rewording.
    I was asking if I can change the location of the CfgPerson by tweaking the folder id in the CfgPerson object.

    Roman's answer was that one would achieve that by removing/adding the CfgPerson DBID from/to the respective folders.

     


Need Help finding something?

Check out the Genesys Knowledge Network - your all-in-one access point for Genesys resources