Forum Discussion

Matthew_Kursar's avatar
Matthew_Kursar
Frequent Visitor
1 year ago
Solved

REST API PostWorkspaceInfo Relationships

27/06 Update: Added more specific details to question   Hello! I was wondering if there is any way to get the Dataset relationships via the REST API? On the ScanResult API page, it seems like there...
  • v-dineshya's avatar
    v-dineshya
    1 year ago

    Hi Matthew_Kursar ,

     

    1. The API supports several metadata flags including datasetSchema, datasetExpressions, lineage, and datasourceDetails.It does not explicitly guarantee that the relationships field will be populated even when you set datasetSchema=True .

     

    2. The sample response in the documentation includes a relationships key, but this appears to be illustrative rather than guaranteed output. That metadata scanning must be fully enabled for schema and expression data to be returned.

     

    Note: The relationships field is not reliably returned by the PostWorkspaceInfo API, even with all metadata flags enabled.

     

    You may need to extract relationship data manually from .pbip project files or use XMLA endpoints with tools like SSMS or PowerShell for deeper model, especially if you are looking for  governance and performance validation.

     

    Please refer Microsoft official document.

    Admin - WorkspaceInfo PostWorkspaceInfo - REST API (Power BI Power BI REST APIs) | Microsoft Learn

     

     

    If my response has resolved your query, please mark it as the "Accepted Solution" to assist others. Additionally, a "Kudos" would be appreciated if you found my response helpful.

    Thank you