Adding Departments/Agents from external Application

Last post 11-17-2008, 9:09 AM by cutechat. 1 replies.
Sort Posts: Previous Next
  •  11-17-2008, 5:50 AM 45854

    Adding Departments/Agents from external Application

    Hi,
     
    i need to add Departments and Agents from my own .Net Web-Application (not from Cute Live Support Admin Web).
    To insert the records in the tables is no problem, but the list of departments in the support client does not refresh.
    Do i have to make additional calls to refresh the list?
  •  11-17-2008, 9:09 AM 45867 in reply to 45854

    Re: Adding Departments/Agents from external Application

    Hi,
     
    You should not write the table directly.
     
    please use CuteChat API :
     
       ChatPortal portal=ChatSystem.Instance.GetCurrentPortal();
       lock(portal)
       {
        portal.DataManager.AddDepartment("mydepartment");
        portal.DataManager.AddAgent("mydepartment","User:username"));
       }
     
    Regards,
    Terry.
View as RSS news feed in XML