0 Replies Latest reply: Jan 11, 2013 5:27 PM by Daniel Lipkie RSS

    QMSAPI: remove a path from SourceDocument Folder

    Daniel Lipkie

      I can get  list of the current folders with

        List<DocumentFolder> sourceDocumentsFolders =

           apiClient.GetSourceDocumentFolders(

              qdsServices[0].ID,

              DocumentFolderScope.General | DocumentFolderScope.Services);

       

      Then do

        foreach (DocumentFolder sourceDocumentFolder in sourceDocumentsFolders.OrderBy(x => x.General.Path))

        {

           if (path == sourceDocumentFolder.General.Path)

           {

                sourceDocumentsFolders.Remove(sourceDocumentFolder);

                break;

           }

        }

       

      How do I go about saving this change to the source folders back to QDS?