The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
Hi all, as the title suggests, when creating a new profile, workspace and report for a multi-tenant environment. PowerBi automatically creates a refresh schedule that looks like this:
{
"@odata.context": "https://api.powerbi.com/v1.0/myorg/groups/{groupId}/$metadata#Microsoft.PowerBI.ServiceContracts.Api.V1.RefreshSchedule",
"days": [
"Sunday",
"Monday",
"Tuesday",
"Wednesday",
"Thursday",
"Friday",
"Saturday"
],
"times": [
"01:30"
],
"enabled": false,
"localTimeZoneId": "UTC",
"notifyOption": "MailOnFailure"
}
We then have some code to automatically disable all refresh schedules since we have our own function app to refresh all datasets. I did however add some extra code to make sure the refresh schedule is always disabled. So I run a patch request to the refresh dataset in group endpoint with this body:
{
"value": {
"enabled": false,
}
}
This request FAILS because the "MailOnFailure" is not valid for a service app owner workspace.
This seems like an oversight and I want to report this as a bug, as now, we have to first send a request to change the NotifyOption and only after that we can make sure to send the `enabled: false` command.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.