The following example shows how to retrieve a list of Portfolios from the Data Source “ManagingEnergy_Template”.
// Get the ManagingEnergy_Template Data Source ManagingEnergy.Data.DataSource dataSource = api.GetDataSource("ManagingEnergy_Template");
// Get the list of portfolios contained withing the ManagingEnergy_Template data source ManagingEnergy.Portfolio[] portfolios = dataSource.GetPorfolios(api);
// Display the list of portfolios foreach (ManagingEnergy.Portfolio portfolio in portfolios) Console.WriteLine(portfolio);
// OUTPUT Springfield Trialuser_Direct EnergySpringfield |