Get File Cabinets |
Once you got the organization, you can continue accessing the file cabinets. Web Baskets and File Cabinets are handled the same way, thus you get baskets and File Cabinets with a single request. The following examples show how to get the File Cabinets and baskets and find the default Web Basket.
var fileCabinets = org.GetFileCabinetsFromFilecabinetsRelation().FileCabinet; foreach (var fc in fileCabinets) Console.WriteLine("You have access to the file cabinet " + fc.Name + ".");
var defaultBasket = fileCabinets.Where(f => f.IsBasket && f.Default).First();
var fileCabinet = fileCabinets.Where(f => !f.IsBasket).First();