WaelHamze / dyn365-ce-vsts-tasks

VSTS Extension for Dynamics 365 Customer Engagement
https://marketplace.visualstudio.com/items?itemName=WaelHamze.xrm-ci-framework-build-tasks
GNU General Public License v3.0
117 stars 56 forks source link

Extract Config Migration Data format #189

Open pritchie99 opened 4 years ago

pritchie99 commented 4 years ago

I would like to manually export and extract the migration data locally in a format that is compatible with the Pack Config Migration Data task, rather than using an Azure pipeline to extract this.

I then propose to manually check these more readable files into git to allow the Power DevOps Tools to repack the data and import it into the target system(s).

Can you tell me how this Extract task performs this so that I can perform this locally, or advise how I can get this into a git repo in that extracted format please?

WaelHamze commented 4 years ago

@pritchie99

You can take a look at this script in the sample project. It does exactly that. There are a few parameters you can change depending on whether you want to split the files by entity and sort the contents.

https://github.com/WaelHamze/dyn365-ce-devops-sample/blob/master/Sample/Xrm.CI.Framework.Sample/Data/Export.ps1

pritchie99 commented 4 years ago

Thanks Wael, this certainly looks promising.

This script refers to 2 other scripts:- ExportCMData.ps1 and ExtractCMData.ps1 however I haven't been able to locate them.

Are these files also available somewhere please?

WaelHamze commented 4 years ago

@pritchie99 these come from this library: https://www.nuget.org/packages/XrmCIFramework/