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 Apps / Dataverse Service Prin...
Power Apps
Answered

Dataverse Service Principal Deployment Issue

(0) ShareShare
ReportReport
Posted on by 4

We have been trying to replae all Dataverse connections inside our flows from individual and service accounts to be now based on Service Principal. This can only be done from inside a flow and it automatically creates a connection reference on the basis of this in the source environment. This creates a problem with deployment because when you deploy this solution, it asks which Connection in the target environment you want to be associated with this new Connection Reference you are importing. Problem is if you create a Dataverse Connection directly from either Power Apps interface or Power Automate interface, it doesn't allow you to do it via a Service Principal. This option is only available from when you right click the Flow step and create one from there. Obviously we could do this in the target environment but then this would create an Unmanaged Layer which we want to avoid at all costs. Is there a way around this?

I have the same question (0)
  • Verified answer
    v-xiaochen-msft Profile Picture
    Microsoft Employee on at

    Hi @LizParry ,

     

    Yeah, we can create a flow in the target environment first so that we can create a Service Principal connection before importing the solution.

    Steps:

    1\ Create flow in target env

    2\ Add dataverse action to create a Service Principal connection in target env

    3\ Now we can find the Service Principal connection in this env.

    vxiaochenmsft_0-1702624547285.png

    4\ Export the solution

    5\ Import the solution and it will pop up a dialog to let you choose the dataverse connection

    6\ Select the Service Principal connection created before.

    vxiaochenmsft_1-1702624664625.png

     

    Now you don't need to create an unmanaged layer for this managed solution.

    Hope it makes sense.

     

    Best Regards,

    Wearsky

  • LizParry Profile Picture
    4 on at

    Thank you Wearsky!

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!

Leaderboard > Power Apps

#1
Haque Profile Picture

Haque 94

#2
WarrenBelz Profile Picture

WarrenBelz 82 Most Valuable Professional

#3
Kalathiya Profile Picture

Kalathiya 38 Super User 2026 Season 1

Last 30 days Overall leaderboard