web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / How to Trigger a Dataf...
Power Automate
Answered

How to Trigger a Dataflow from Power Automate with a Service Principal Connection?

(0) ShareShare
ReportReport
Posted on by 28

Hi there. I am trying to trigger a Dataflow from Power Automate. The Dataflow was configured directly in the Power Platform with my personal account. I have a Service Principal that I want to use for the connections in my solution. Specifically I am trying to do the following

1. Create a Power Query Dataflows connection with the credentials of the SP

LeoDataVinci_0-1711416512572.png


2. Use that connection to trigger the Dataflow refresh from my flow.

LeoDataVinci_1-1711416656028.png


When using the connection that is under my personal account I can select all the dataflows in the 'Dataflows' dropdown in the connector input window.

However when using the connection under the SP I get the following error when trying to select the dataflows.

LeoDataVinci_2-1711416865854.png


Error Message:

Could not retrieve values. The dynamic invocation request failed with error: { "Message": "The backend request failed with error code '403'", "Reason": "Forbidden", "WorkspaceType": "Environment", "OperationId": "ListDataflowsForRefreshDataflow", "ClientRequestId": "XXXXXXXXXXXXXXXXXXXXX", "ClientRequestUrl": "https://australia-001.azure-apim.net/apim/dataflows/shared-dataflows- XXXXXXXXXXXXXXXXXXXXX /api/group/ XXXXXXXXXXXXXXXXXXXXX -australia/listdataflows/forrefreshdataflow?workspaceType=Environment" }.

The Service Principal has System Administrator Security Role in the Environment of the Dataflow. Also the SP has been given the floowing Azure API permissions:

LeoDataVinci_3-1711417248221.png



Any clues would be much appreciated?










Categories:
  • v-yueyun-msft Profile Picture
    Microsoft Employee on at

    Hi , @LeoDataVinci 

    The 403 means the connection have no access to the service. You may need to check :

    (1)If you Power Bi tenant open the options.

    Use service principal profiles to manage customer data in multitenant apps - Power BI | Microsoft Learn

     

    (2)You can try to add your Service principal to your workspace as a member in your powerbi side.

     

    Best Regards,

    Yueyun Zhang

  • CU19091140-0 Profile Picture
    28 on at

    Hi Yueyun. The Dataflows are in a Power Platform not in a Power BI workspace. Are you aware of configurations required in Power BI when using a Dataflow in a Power Platform environment? 

    LeoDataVinci_0-1711422667975.png

     




  • CU19091140-0 Profile Picture
    28 on at
  • v-yueyun-msft Profile Picture
    Microsoft Employee on at

    Hi , @LeoDataVinci 

    I test it in my side , i encounter the same error code....😅

    vyueyunmsft_0-1711431356693.png

    And as searched , i have found no document the permission the service principal need...

     

     I suggest you create a support ticket for professional assistance following the below procedure.

    Get Help + Support - Power Platform | Microsoft Docs

     

    Best Regards,

    Yueyun Zhang

     

  • CU19091140-0 Profile Picture
    28 on at

    Cheers Thanks Yueyun

  • v-yueyun-msft Profile Picture
    Microsoft Employee on at

    Hi , @LeoDataVinci 

    Very kind to your reply and sorry for not solving the problem for you!
    If you solve the problem in the future, can you share the solution here, it will help more people who have lost their way.... including me..😛

     

    Best Regards,

    Yueyun Zhang

  • Verified answer
    CU19091140-0 Profile Picture
    28 on at

    Got the confirmation from Microsoft that Dataflows cant be triggered with Service Principals

    I have checked with the product group, and got their confirmation that as per our doc Power Query Dataflow connector - Power Query | Microsoft Learn, the Dataflow only supports authentication method of for organizational account (service accounts) and it is not supported for service principal. 

     

     Hence, we got the 403 error when trying to retrieve data with service principal connection. 

     

  • v-yueyun-msft Profile Picture
    Microsoft Employee on at

    Hi , @LeoDataVinci 

    Thanks for your sharing about this issue!! You can mark your response, which can help more people who are disoriented.

     

    Best Regards,

    Yueyun Zhang

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
Mohsin Ali Profile Picture

Mohsin Ali 445

#2
11manish Profile Picture

11manish 345 Super User 2026 Season 2

#3
M Bilal Khan Profile Picture

M Bilal Khan 300

Last 30 days Overall leaderboard