Adoxio.Dynamics.DevOps icon indicating copy to clipboard operation
Adoxio.Dynamics.DevOps copied to clipboard

Add Export-CrmData function

Open ScottColson opened this issue 5 years ago • 10 comments

Added reference to Microsoft.Xrm.DevOps.Data.PowerShell module and created Export-CrmData function to use Microsoft.Xrm.DevOps.Data.PowerShell to export data from the target database and export it as a zip file. Zip file is compatible with existing function to Expand and Compress data.

ScottColson avatar Jun 17 '20 21:06 ScottColson

Hi @ScottColson,

This should be useful! Please update the sample files to incorporate this functionality, as they are very important to using this module. This includes the Full.ps1 export settings file and the Export.ps1 script that the export is initiated from.

I will review again afterwards and provide any further relevant feedback.

Thanks,

Alan

amervitz avatar Jun 17 '20 22:06 amervitz

PR is updated to use Microsoft.Xrm.Tooling.ConfigurationMigration PowerShell module. Updated Advanced example to show usage.

ScottColson avatar Jun 18 '20 20:06 ScottColson

@ScottColson it seems your branch was not based on the latest version of code from the master branch. Please resolve the merge conflicts, then I will be able to start some testing.

amervitz avatar Jun 18 '20 23:06 amervitz

Sigh... Apparently I need to do this more often. Fixed. I opted not to update the docs since it looks like you might be doing that automatically from code comments.

ScottColson avatar Jun 19 '20 00:06 ScottColson

I had forgot about the docs. I believe I used this script as a starting point to generate the markdown file. If you could make the doc that would be helpful.

amervitz avatar Jun 19 '20 01:06 amervitz

I updated readme.md and added docs\functions\Export-CrmData.md.

ScottColson avatar Jun 19 '20 12:06 ScottColson

Checking in to verify i'm not blocking you on this. Let me know if you need anything else from me.

ScottColson avatar Jun 29 '20 17:06 ScottColson

@amervitz Checking in to verify that I'm not blocking you on this. Let me know if you need anything else from me.

ScottColson avatar Jun 29 '20 17:06 ScottColson

@ScottColson I need to find the time to test this. Have you tested data export in the Export.ps1 script that performs all the export actions?

amervitz avatar Jun 29 '20 17:06 amervitz

@amervitz I've not tested the full export.ps1 script. I have tested the data export function in a personal project that is similar to the sample export.

ScottColson avatar Jun 29 '20 21:06 ScottColson