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

Notifications

Announcements

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 236
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
    236 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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 507 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 267 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard