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 :
Service | Customer Service, Contact Center, Fie...
Suggested Answer

CDS Configuration Data Migration tool not recognizing relationships

(0) ShareShare
ReportReport
Posted on by 20

Hello, we have a need to move data of related entities from PROD to TEST/sandbox environment to attempt to recreate a bug that's occurring in production. To recreate it, we need the data. Problem is data spans multiple related entities, so we actually need to move data from a set of related entities from PROD to TEST.. I was told to do this via configuration migration tool.

1. Is that the correct tool by microsoft to move data of related entities, such that the guids will be preserved?

2. In trying to use it, I found that while creating the schema it lets me select 1 entitiy but doesn't show the relationships of that entity I selected. If it can't detect the relationships how will it move related records from other entities?

Thanks  

I have the same question (0)
  • Suggested answer
    Community Member Profile Picture
    on at

    Hi prog2021,

    Yes. The Configuration Migration tool enables you to move configuration data across environments and organizations.

    You can refer following link to know more:

    Move configuration data across organizations - Power Platform | Microsoft Docs

    For second question, “while creating the schema it lets me select 1 entitiy but doesn't show the relationships of that entity I selected.

    In the document, which said that schema files contain relationships data.

     pastedimage1623809288337v1.png

    You can select the Show the relationships of the selected entity to view the related entities(N:N relationship) for the selected entity so that you can export them as well.

     pastedimage1623812711563v2.png

    N:N relationships has been shown under 'Relationship' tab, 1:N relationship has been shown under 'Fields' tab with lookup field.

    Account and Contact is 1:N relationship, which has one account lookup field in the contact entity.

    pastedimage1623812844307v3.png 

    You can refer following to know steps for creating a schema to export configuration data:

    Create a schema to export configuration data - Power Platform | Microsoft Docs

    Regards,

    Leah Ju

    Please mark as verified if the answer is helpful. Welcome to join hot discussions in Dynamics 365 Forums.

  • Star Light Profile Picture
    5 on at

    Hi prog2021,

    Currently we encountered same challenge to migrate config data from one environment to another. We came across a very light weight nuget package DynamicsDataToolkitPowerShell that solves the problem and preserves guids etc. We found it is well documented and easy to configure tool. I was also able to hook this package to devops release pipeline to achieve automation.

    www.nuget.org/.../

    To achieve -> In trying to use it, I found that while creating the schema it lets me select 1 entitiy but doesn't show the relationships of that entity I selected. If it can't detect the relationships how will it move related records from other entities?

    let's say you want to import account and all the related contacts so 1 account with many contacts. 1 - N relationship. Below solution is relation to the tool I mention above.

    1. you will create a fetch on the account entity with all the attributes you need and add a step to the JOB xml file with order 1.
    2. you will create second fetch on the contact entity with all the required attributes that you wish to move making sure that you choose account lookup in your selection and add a step to the JOB xml file with order 2

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 April Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Service | Customer Service, Contact Center, Field Service, Guides

#1
Abhilash Warrier Profile Picture

Abhilash Warrier 51 Super User 2026 Season 1

#2
James White Profile Picture

James White 21

#3
FSRon Profile Picture

FSRon 19

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans