Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

QMSAPI: remove a path from SourceDocument Folder

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?

0 Replies