powerplatform-vscode icon indicating copy to clipboard operation
powerplatform-vscode copied to clipboard

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

Open majakubowski opened this issue 3 years ago • 5 comments

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.

majakubowski avatar Dec 22 '22 10:12 majakubowski

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

ameyaapte1 avatar Dec 23 '22 04:12 ameyaapte1

@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

majakubowski avatar Dec 23 '22 15:12 majakubowski

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

ameyaapte1 avatar Dec 26 '22 06:12 ameyaapte1

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.

MrRishabhJain avatar Aug 09 '23 07:08 MrRishabhJain

@MrRishabhJain any progress? :)

majakubowski avatar Jun 04 '24 13:06 majakubowski