microsoft / powerplatform-build-tools

Power Platform Build Tools automate common build and deployment tasks related to Power Platform. This includes synchronization of solution metadata (a.k.a. solutions) between development environments and source control, generating build artifacts, deploying to downstream environments, provisioning/de-provisioning of environments, and the ability to perform static analysis checks against your solution using the PowerApps checker service.
MIT License
174 stars 37 forks source link

Power Platform Upload PAPortal and resetting option set attributes to default values #272

Open majakubowski opened 1 year ago

majakubowski commented 1 year ago

For multi-step forms, not all attributes are transferred between environments in following scenario:

  1. Create Multistep Form with non default values for attribute: "Progress Indicator - Type" (default value = "Title") and "Progress Indicator - Position" (default value = "Top"),
  2. Download configuration from portal from dev,
  3. Upload configuration to qa,
  4. Change "Progress Indicator - Type" and "Progress Indicator - Position" to default values,
  5. Download configuration from portal from dev,
  6. Upload configuration to qa,

We expect the values on qa to be reset to their default values (set in step 5), but they remain at the values set in step 1. The reason for the problem is that the default values for optionset fields are not saved in yaml - comparison of files generated in step 2 and 5: image

I believe the issue is also related to the issue - https://github.com/microsoft/powerplatform-build-tools/issues/254#issuecomment-1359390649 - in that case empty attributes are skipped when values are cleared.

Also similar to issue https://github.com/microsoft/powerplatform-build-tools/issues/254#issuecomment-1359390649 - the problem also applies to any object/record and any property/field with optionset type.. This requires manual handling when transferring configurations between environments and can sometimes be really hard to track down.

ameyaapte1 commented 1 year ago

We have a work item for this and will be fixing it in upcoming release, tagging @MrRishabhJain for visibility

majakubowski commented 1 year ago

@ameyaapte1 great news!

one more thing - i realized yesterday that the same applies to textboxes as well - will this also be fixed or should I create new issue for this?

eg. Basic Form with selected Tab Name.. after reseting to blank value: image

ameyaapte1 commented 1 year ago

We have a different work item tracking this and will update on the progress. +@ashishchoudhary001

MrRishabhJain commented 11 months ago

We're actively working on this enhancement to enable pac paportal upload to reset values to default. We are targeting to include this feature in the September release.

majakubowski commented 1 month ago

@MrRishabhJain any progress? :)