microsoft / microsoft/powerplatform-vscode
Power Platform Upload PAPortal and resetting option set attributes to default values
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 277
- Forks
- 60
- Avg merge
- 1d 1h
- Merged PRs (30d)
- 14
Description
For multi-step forms, not all attributes are transferred between environments in following scenario:
- Create Multistep Form with non default values for attribute: "Progress Indicator - Type" (default value = "Title") and "Progress Indicator - Position" (default value = "Top"),
- Download configuration from portal from dev,
- Upload configuration to qa,
- Change "Progress Indicator - Type" and "Progress Indicator - Position" to default values,
- Download configuration from portal from dev,
- 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:

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.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.