Forum Discussion
Rest API Get Pipeline Stage Artifacts
Hi.
I am having an issue trying to build a "Release" report to show all releases we have done using Power BI Deployment Pipelines.
Logic is as Follow:
1 - Get all Pipelines in my tenancy (I am administrator in all pipelines): https://api.powerbi.com/v1.0/myorg/pipelines (works OK)
2 - Get all the the stages of my pipeline https://api.powerbi.com/v1.0/myorg//pipelines/4654235.../stages (Works ok returning all stages
3- Get all the artifacts for every stage from 2) https://api.powerbi.com/v1.0/myorg/pipelines/4654235.../stages/2/artifacts (Return always empty)
The issue is the step 3) always return "null" records
When I test the Rest API in the web https://learn.microsoft.com/en-us/rest/api/power-bi/pipelines/get-pipeline-stage-artifacts
it always return more than onevalue
It´s seems the endPoint for "Pipelines - Get Pipeline Stage Artifacts" , will always return nothing.
Any experience with this issues or estimated solving time ?
Since you have a Pro license you can open a Pro ticket at https://admin.powerplatform.microsoft.com/newsupportticket/powerbi
I found the issue.
Rest API for https://api.powerbi.com/v1.0/myorg/pipelines/4654235.../stages/2/artifacts returns a different data structure to the other endpoints...I had a "general" solution that has been using with Datasets, dataflow, pieplines.
Well. now I think the documentation have sample response I should have read better.
I won´t be able to mantein "general" solution to interact with the REst API, but it´s working ok.
GET https://api.powerbi.com/v1.0/myorg/pipelines/a5ded933-57b7-41f4-b072-ed4c1f9d5824/operationsGET https://api.powerbi.com/v1.0/myorg/pipelines/{pipelineId}/stages/{stageOrder}/artifacts
5 Replies
- rivasrdFrequent Visitor
I found the issue.
Rest API for https://api.powerbi.com/v1.0/myorg/pipelines/4654235.../stages/2/artifacts returns a different data structure to the other endpoints...I had a "general" solution that has been using with Datasets, dataflow, pieplines.
- v-achippaCommunity Support
Hi rivasrd,
Thank you for reaching out to Microsoft Fabric Community.
Thank you for confirming that you got a solution for the issue. Can you please accept that post as Accept as solution, so that other community members will find it more quickly.
Regards,
Anjan Kumar Chippa
- lbendlinSuper User
If I were you I would still open the ticket for the inconsistent response.
- rivasrdFrequent Visitor
Well. now I think the documentation have sample response I should have read better.
I won´t be able to mantein "general" solution to interact with the REst API, but it´s working ok.
GET https://api.powerbi.com/v1.0/myorg/pipelines/a5ded933-57b7-41f4-b072-ed4c1f9d5824/operationsGET https://api.powerbi.com/v1.0/myorg/pipelines/{pipelineId}/stages/{stageOrder}/artifacts
- lbendlinSuper User
Since you have a Pro license you can open a Pro ticket at https://admin.powerplatform.microsoft.com/newsupportticket/powerbi