BISharp.DashboardClient.List C# (CSharp) Method

List() public method

public List ( ) : Task
return Task
        public async Task<Dashboards> List()
        {
            return await List(string.Empty);
        }
        public async Task<Dashboards> List(string groupId)

Same methods

DashboardClient::List ( string groupId ) : Task

Usage Example

        public async Task<ActionResult> Dash(string dashId)
        {
            var pbi = new PowerBiAuthentication(new powerbiWebToken());
            var dashboardClient = new DashboardClient(pbi);
            var dashes = await dashboardClient.List();
            ViewBag.dashes = dashes.value;
            ViewBag.accessToken = pbi.GetAccessToken();

            var firstDash = dashes.value.First(d=>d.id == dashId);
            var tiles = await dashboardClient.Tiles(firstDash.id);

            return View("Index", model: tiles);
        }
All Usage Examples Of BISharp.DashboardClient::List