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

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 Apps

#1
WarrenBelz Profile Picture

WarrenBelz 721 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 320 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard