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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics 365 | Integration, Dataverse...
Suggested Answer

Automating connection reference handling during solution import, is there an official approach?

(0) ShareShare
ReportReport
Posted on by

Hi everyone,

We built an automated Power Platform deployment pipeline using Azure Automation (PowerShell runbooks), Microsoft.Xrm.Data.PowerShell, and App Registration auth. The flow works: export solution → store ZIP in Azure Blob → import into target environment. It breaks as soon as flows with connection references are involved.

The error we get:

MissingDependencies — connectionreference required by Workflow

What we confirmed:

  • Connection references ARE visible inside the solution in make.powerapps.com

  • BUT when we query solutioncomponent filtered by solutionid, we get 0 results for connection references

  • The componenttype values we see are only: Workflow, Canvas App, and two unrecognized empty entries
# Returns 0 for componenttype = 10067
$components = Get-CrmRecords -conn $conn `
    -EntityLogicalName solutioncomponent `
    -FilterAttribute solutionid -FilterOperator eq -FilterValue $solutionId `
    -Fields objectid, componenttype

$components.CrmRecords | Where-Object { $_.componenttype -eq 10067 }

So either the componenttype for connection references is not 10067, or connection references are not included as solution components the way we expect.

What we are trying to achieve:
Fully automated deployment with zero manual steps:

  1. Detect connection references used by flows in the solution

  2. At import time, map or create equivalent connection references in the target environment

  3. Associate them to existing connections owned by a service account

  4. Import the solution and have flows ready to activate

Our open questions:

  1. What is the correct componenttype value for connection references in solutioncomponent?

  2. Is the deployment settings JSON (pac solution create-settings) the official mechanism for this, and does it work with Import-CrmSolutionAsync or only with PAC CLI?

  3. Can connection references be created programmatically in the target env via Dataverse API or PowerShell, or do they always require interactive user authentication?

  4. How should source → target mapping work when connection IDs differ across environments?

  5. Does the behavior differ between Managed and Unmanaged solutions, or between Service Principal and user-owned connections

Context: We are not using Azure DevOps or Power Platform Pipelines. Our orchestration is Azure Automation + Power Automate, triggered from a Canvas App.

Any pointer to official documentation or recommended patterns would be very helpful.

Thanks in advance.

I have the same question (0)
  • Suggested answer
    11manish Profile Picture
    540 on at
    You cannot reliably detect or handle connection references via solutioncomponent queries.

    The only supported, fully automated approach is to use PAC CLI with deployment settings JSON during import.
    • componenttype = 10067 is correct
    • But you cannot reliably fetch them via solutioncomponent
    • The official and supported approach is using deployment settings JSON with PAC CLI
    • Import-CrmSolutionAsync alone is not sufficient for flows with connection references
    Practical recommendation
     
    Keep your pipeline, but change one thing:
    • Use PAC CLI for the import step with settings.json

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

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Microsoft Dynamics 365 | Integration, Dataverse, and general topics

#1
11manish Profile Picture

11manish 153

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 67 Super User 2026 Season 1

#3
ManoVerse Profile Picture

ManoVerse 61 Super User 2026 Season 1

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans