This repository was archived by the owner on Jan 24, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
Add Export-CrmData function #1
Open
ScottColson
wants to merge
10
commits into
Adoxio:master
Choose a base branch
from
ScottColson:master
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 3 commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
245ae9e
Add Export-CrmData function to support scripted data export using Mic…
c27df6b
Update Export-CrmData function to use Microsoft.Xrm.Tooling.Configura…
48e98e8
Update samples to show usage of export data function.
e6c71d2
Fix issue in Full.ps1 to add Export-CrmData validation option.
dcab0e3
Space vs tabs....
b7b8cf5
More spaces and tabs....
e173e71
Space and tabs...
ScottColson f878c0a
Updates to code style and comments
amervitz 92252c2
Merged upstream/master
e0170d1
Update docs to include Export-CrmData function.
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -73,6 +73,14 @@ $projectRoot = Split-Path -Parent $scriptsRoot | |
| account = {$_ -in 'accountid','parentaccountid'} # only export accountid and parentaccountid fields | ||
| } | ||
| } | ||
|
|
||
| # ExportData is used by export.ps1. Defines configuration data schema file to use for export and the zip file to put the data in. | ||
|
||
| ExportData = [PSCustomObject]@{ | ||
| CrmConnectionParameters = $CrmConnectionParameters | ||
| SchemaFile ="$projectRoot\temp\export\schema.xml" | ||
amervitz marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| ZipFile = "$projectRoot\temp\export\FabrikamFiberData.zip" | ||
| } | ||
|
|
||
| ExtractData = [PSCustomObject]@{ | ||
| ZipFile = "$projectRoot\temp\export\FabrikamFiberData.zip" | ||
| Folder = "$projectRoot\crm\data\FabrikamFiber" | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -35,7 +35,8 @@ ProcessorArchitecture = 'None' | |
|
|
||
| # Modules that must be imported into the global environment prior to importing this module | ||
| RequiredModules = @( | ||
| @{ModuleName='Microsoft.Xrm.Data.Powershell'; ModuleVersion='2.8.0'; Guid='7df9c140-65c3-4862-b3bc-73fad633aae4'} | ||
| @{ModuleName='Microsoft.Xrm.Data.Powershell'; ModuleVersion='2.8.0'; Guid='7df9c140-65c3-4862-b3bc-73fad633aae4'}, | ||
| @{ModuleName='Microsoft.Xrm.Tooling.ConfigurationMigration'; ModuleVersion='1.0.0.44'; Guid='162392C2-EDE9-4754-B5A3-7DE42E5C768C'} | ||
|
||
| ) | ||
|
|
||
| # Functions to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no functions to export. | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Export-CrmDataneeds to be added to this list.