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 / Pipeline Deployment is...
Power Automate
Suggested Answer

Pipeline Deployment issues with a solution that has a Desktop Flow

(2) ShareShare
ReportReport
Posted on by 248
I am trying to deploy a solution to my test environment that contains a desktop flow. My pipelines uses delegated deployments with a Service Principal account. I get the following error message when I try to deploy it.
 
Request failed with: Forbidden and error: {"error":{"code":"ConnectionAuthorizationFailed","message":"The caller with object id '2c6af4e0-196c-4fda-ad9a-e5463e864937' does not have the minimum required permission to perform the requested operation on connection 'shared-uiflow-7d9c3b22-adcf-428f-9028-fe5bba6f207b' under API 'shared_uiflow'."}} and request url https://api.powerapps.com/providers/Microsoft.PowerApps/scopes/service/apis/shared_uiflow/connections/shared-uiflow-7d9c3b22-adcf-428f-9028-fe5bba6f207b?api-version=2018-10-01&$expand=permissions($filter=maxAssignedTo('2c6af4e0-196c-4fda-ad9a-e5463e864937')&$filter=environment eq '9b5c15ca-0b27-eca9-9863-a06c5141c109'
 
I use Pipelines for other projects that promote fine. This is the first project that contains a Desktop Flow.
I have the same question (0)
  • martinmc Profile Picture
    35 on at
     
    Did you manage to figure out this error? I have the exact same issue in the Pipelines. I actually managed to bypass it in a Solution at some point but I do not know what I did at that time. 
    Now I have another Solutions which causes the same error. I tried with different Desktop Flow Connections (using username/password or Credential). But my service Pricipal Account may not share/access the connection  - exactly as your error states.
     
    Best Regards
    Martin
  • Suggested answer
    NickTT Profile Picture
    248 on at
    @martinmc I was able to figure out a work around. Export the whole solution as a managed project first to the legacy zip file. Then import that into the environment you are trying to deploy the desktop flow to. It should import fine and walk you through creating the desktop flow connections. Then re-deploy updates via pipelines after that. Should work fine. I did open a case with Microsoft on it to show the issue and they are taking note on it. They were not aware of the issue with  delegated deployments. 
     
    The issue lies with the Power Automate Connection. Those can't be shared. MS needs to remove that restriction. I did also change a permission on the environment too. Make sure the pipeline deployment application account has these roles in each environment you are deploying too.
     
     

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 791

#2
Valantis Profile Picture

Valantis 582

#3
Haque Profile Picture

Haque 529

Last 30 days Overall leaderboard