microsoft / microsoft/powerplatform-vscode

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

Open
#1,004 5 comments 0 reactions 1 assignee View on GitHub

Nobody has claimed this yet.

enhancement paportal
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:

  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.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.