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

Setting environment values (organizationsettings) isn't supported by solution pack operation. #797

Closed
sergeytunnik opened this issue Jan 3, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@sergeytunnik
Copy link

Version

>pac help
Microsoft PowerPlatform CLI
Version: 1.29.11+g9e2b163

Steps to reproduce:

  1. Add setting environment value into solution.
    image
  2. Export solution and unpack zip file to verify that setting environment value is present inside.
│   solution.xml
│   [Content_Types].xml
│
└───organizationsettings
    └───AsyncOnSave
            organizationsetting.xml
  1. Unpack solution using pac to verify that setting environment value is properly unpacked.
    Command: pac solution unpack -z .\tunnikev_1_0_0_1.zip -f .\out-1
├───organizationsettings
│   └───AsyncOnSave
│           organizationsetting.xml
│
└───Other
        Customizations.xml
        Solution.xml
  1. Pack solution using pac and verify if that setting environment values is present inside zip.
    Command: pac solution pack -f .\out-1 -z .\tunnikev_1_0_0_1-out-1.zip
    customizations.xml
    solution.xml
    [Content_Types].xml

No subfolders exist

NB
Having setting environment values inside solutions is properly supported by Dataverse and we can verify it by changing value and reimporting solution exported at step 2. We can then see that it is overwritten to the values we have in solution zip files.
Seems like just solution packager tool doesn't fully support that type of customizations.

References:

@tehcrashxor
Copy link
Member

Fixed with last week's PAC v1.31.6 release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants