Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: Work with local data files, merge them through pipeline #26

Open
janis-veinbergs opened this issue Jan 24, 2024 · 1 comment
Open

Comments

@janis-veinbergs
Copy link

Currently Merge-CrmDataPackage with pipeline works in a way that all piped packages get appended single AdditionalPackage.

I'd like improve command by allowing piping any number of CrmDataPackage and it will append in an order how items enter within pipeline.

That would allow me having many data projects locally that I want to merge and prepare a .zip for. CRM Packages just flow in and get merged

Get-ChildItem $DataRoot -Recurse -Filter "data.xml" `
	| New-CrmDataPackage `
	| Merge-CrmDataPackage `
	| Export-CrmDataPackage -ZipPath $zipPath

New-CrmDataPackage is also a new command, because I want to get package objects from files within source control and without having to pass a connection to CRM.

Basically I have (or wish to have) a source control structure like this:

Data
  entity1
    data.xml
    data_schema.xml
  configentity
    data.xml
    data_schema.xml
  productcatalog_manyentities
    data.xml
    data_schema.xml

And just pipe up some commands to pack it in a Data.zip for Package Deployer to use.

@janis-veinbergs
Copy link
Author

Sorry for bombarding with PRs - however I got everything working (albeit this PR is just convenience, I first implemented them via PS functions) - the comma/dot separator is critical one, otherwise I just cannot use this module :(
the m2mrelationships bugfix is just inconvenience and this PR is just convenience.

I was always thinking about not breaking someone's commands and I manually tested that they continue working as they should.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant