Skip to content

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

Open
@Hjaf

Description

@Hjaf

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions