Results 1 to 2 of 2

Thread: Unable to create a new folder

  1. #1
    maverick123 is offline Starter Member
    Join Date
    Apr 2009
    Posts
    2
    Rep Power
    5

    Default Unable to create a new folder

    I am trying to create a new folder using the below code, but it fails. Can anybody point out the mistake, and additionally any other threads or examples to create a folder would be really helpful. I am trying to create folder and associate a url (a rss feed) to it.

    Thanks in advance

    var soapDoc = AjxSoapDoc.create("CreateFolderRequest", "urn:zimbraMail");
    var folderNode = soapDoc.set("folder");
    folderNode.setAttribute("name", "folder-test");
    folderNode.setAttribute("l", parent);
    folderNode.setAttribute("view", ZmOrganizer.VIEWS[ZmOrganizer.FOLDER][0]);
    var command = new ZmCsfeCommand();
    var resp = command.invoke({soapDoc: soapDoc});
    var id = resp.Body.CreateFolderResponse.folder[0].id;
    if (!id) {
    throw new AjxException("Cannot create evite folder ", AjxException.INTERNAL_ERROR, "createEviteFolder");
    }
    this.eviteFolderID = id;

  2. #2
    lfasci is offline Trained Alumni
    Join Date
    Jul 2006
    Location
    Pisa
    Posts
    134
    Rep Power
    8

    Default

    You are trying to create a calendar folder for a mail folder you cant try this code

    var soapDoc = AjxSoapDoc.create("CreateFolderRequest", "urn:zimbraMail");
    var folderNode = soapDoc.set("folder");
    folderNode.setAttribute("name", "folderName");
    folderNode.setAttribute("l", "1");
    var command = new ZmCsfeCommand();
    var resp = command.invoke({soapDoc: soapDoc});
    var id = resp.Body.CreateFolderResponse.folder[0].id;
    if (!id) {
    throw new AjxException("Cannot create folder ", AjxException.INTERNAL_ERROR, "checkFolderExist");
    }

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. 'Couldn't access Yahoo! Zimbra Desktop server"
    By chirag1 in forum Error Reports
    Replies: 37
    Last Post: 06-12-2011, 05:14 PM
  2. Zimbra + Funambol Sync4j Code
    By KevinH in forum Mobility
    Replies: 563
    Last Post: 01-16-2010, 02:20 AM
  3. .pst migration issues
    By jimklein in forum Migration
    Replies: 13
    Last Post: 02-16-2009, 01:55 AM
  4. Error when Using Outlook PST Importer
    By chh in forum Zimbra Connector for Outlook
    Replies: 1
    Last Post: 01-19-2009, 05:20 AM
  5. Replies: 3
    Last Post: 08-11-2007, 12:40 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •