microsoft/powerplatform-vscode

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

sergeytunnik opened this issue · 1 comments

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:

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