Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inconsistent formatting of values for pac env list-settings and pac env update-settings #1075

Open
Hjaf opened this issue Dec 13, 2024 · 0 comments

Comments

@Hjaf
Copy link

Hjaf commented Dec 13, 2024

The --json flag could perhaps provide additional fields for the actual values, but as mentioned in #1058 there seems to be an issue with this where it only returns "ValueKind": "3".

I tried falling back to parsing the non json text output, but it's clear that from pac env list-settings are formatted, while pac env update-settings take unformatted values. e.g.:

% pac env list-settings --environment *** -f fullname                                                             
Connected as ******
Setting                Value
fullnameconventioncode First Name

The input takes a int value such as 0, 1, 2, ... 7 representing a choice:

% pac env update-settings --environment *** --name fullnameconventioncode --value 3                                   
Connected as ******
Setting 'fullnameconventioncode' updated successfully to '3'.

https://learn.microsoft.com/en-us/power-apps/developer/data-platform/reference/entities/organization#fullnameconventioncode-choicesoptions

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant