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

Add Get-SitecoreCommercePolicy #5

Open
richardszalay opened this issue Jul 1, 2018 · 0 comments
Open

Add Get-SitecoreCommercePolicy #5

richardszalay opened this issue Jul 1, 2018 · 0 comments

Comments

@richardszalay
Copy link
Owner

richardszalay commented Jul 1, 2018

The "filesource" parameter set for Set-SitecoreCommercePolicy was removed as it added unnecessary complexity, but it could easily be restored by adding a Get-SitecoreCommercePolicy.

Usecases would be:

# Merge policies and their properties from another policy file
Get-SitecoreCommercePolicy -Path "source.json" | Set-SItecoreCommercePolicy -Path "target.json"

# Add policies if they don't exist on the target
Get-SitecoreCommercePolicy -Path "source.json" | Set-SItecoreCommercePolicy -Path "target.json" -Force

(The pipelining isn't currently supported by Set, so that change will be required too)

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