Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
HI,
I want to try refresh Dataflow using API and it shows an error like write error
Script:-Invoke-PowerBIRestMethod -Url 'dataflows/XYZ/refreshes'-Method Post -Body ('XYZ') but it shows Below Error
@lbendlin Suggest me
try this Link Also
Solved! Go to Solution.
HI @Anonymous,
I think you missed the required parameters in your requests so they are send failed.
Dataflows - Refresh Dataflow - REST API (Power BI Power BI REST APIs) | Microsoft Docs
As the document said, it required the URL parameter(dataflowId, groupId) and body parameter(notifyOption) which you did not provide.
Sample code: please replace the {} part with your group and dataflow id.
$Body ="{'notifyOption'='MailOnFailure'}"
Invoke-PowerBIRestMethod -Url 'groups/{groupId}/dataflows/{dataflowId}/refreshes' -Method Post -Body $Body
Regards,
Xiaoxin Sheng
Hi,
Thanks for Your Update,
according to the above sample code We replace the {} part with your group and dataflow id Still We have Same Error
Kindly Let me know if any permission is Required from Tenant Side and if there is any how can we Allow this.
HI @Anonymous,
I think you missed the required parameters in your requests so they are send failed.
Dataflows - Refresh Dataflow - REST API (Power BI Power BI REST APIs) | Microsoft Docs
As the document said, it required the URL parameter(dataflowId, groupId) and body parameter(notifyOption) which you did not provide.
Sample code: please replace the {} part with your group and dataflow id.
$Body ="{'notifyOption'='MailOnFailure'}"
Invoke-PowerBIRestMethod -Url 'groups/{groupId}/dataflows/{dataflowId}/refreshes' -Method Post -Body $Body
Regards,
Xiaoxin Sheng
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
13 | |
2 | |
2 | |
1 | |
1 |
User | Count |
---|---|
19 | |
3 | |
2 | |
2 | |
2 |