Dashboard that I wanted was in the call directly before, then it errors...
var dashboards = await client.Dashboards.GetDashboardsInGroupAsync(GroupId);
// Get the first report in the group.
var dashboard = dashboards.Value.FirstOrDefault();
if (dashboard == null)
{
return View(newEmbedConfig()
{
ErrorMessage = "Group has no dashboards."
});
}
// Generate Embed Token.
var generateTokenRequestParameters = newGenerateTokenRequest(accessLevel: "view");
var tokenResponse = await client.Dashboards.GenerateTokenInGroupAsync(GroupId, dashboard.Id, generateTokenRequestParameters);