web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Power Apps - Microsoft Dataverse
Suggested answer

Choice field

(2) ShareShare
ReportReport
Posted on by 34
Hi,
 
When creating a new solution and create a new choice, shall we stick with the value given to us like
126780000
126780001

or shall we change it to 0 and 1 or 1 and 2

and why?
I have the same question (0)
  • Suggested answer
    developerAJ Profile Picture
    4,082 on at
    Choice field
    It’s completely up to you — I personally follow 0, 1, 2.

    The only thing you need to be careful about is not changing the numeric values once they’re in use. You can change the labels anytime, but not the values, since Dataverse stores choice fields by their numeric value (e.g., 0, 1, 2).
     

    If this solution helped you resolve your issue, kindly mark it as accepted — it makes it easier for others to find and also closes the discussion. If you found it useful, a Like ❤️ would be greatly appreciated!

    🤝 Let’s connect on LinkedIn 

    📘 Explore more on my articles

    🐱‍💻 Github Link

    💼👥 Looking for Jobs Power Platform & Microsoft Jobs Network

  • DELDYN Profile Picture
    34 on at
    Choice field
    Hi,

    Why do you prefer 0,1? what does it help u with?

    And what do you mean i need to be careful to change the values after they are used?
    So if they were 0,1 and i changed them to 1,2 what would happen?
  • Suggested answer
    Michael E. Gernaey Profile Picture
    51,223 Super User 2025 Season 2 on at
    Choice field
     
    I personally do not like using 0 1 2, and this is just my opinion and doesn't make Aj's less valid.
     
    I prefer to configure my Choices, that I create leveraging numeric ranges that I can put into my functional, technical and specifically support documentation, so that across multiple Global and or Local choices, I am not using the same value each time. this way when I build things like Flows, and I need to the value for easy comparison to a selected value, I know exactly what it should be as I have it documented that way.
     
    In the end its a personal choice, I just have my own ALM and Support Style that I push to make sure (including error codes) are unique for sure and I define them when I can.
     
    But total personal choice.

    If these suggestions help resolve your issue, Please consider Marking the answer as such and also maybe a like.

    Thank you!
    Sincerely, Michael Gernaey
  • developerAJ Profile Picture
    4,082 on at
    Choice field
    Why I Prefer 0, 1, 2…
     
    Simplicity & predictability – Small sequential numbers are easier to manage and instantly recognizable when debugging
     
    Performance & clarity in formulas – Numeric comparisons like
    If(Status.Value = 1, "Pending", "Other")
    are cleaner and easier to maintain.
     
    example i got status deleted,pending ,approved,rejected etc

    i use 0 for deleted, 1: Pending, 2: Approved, 3: rejected keeping it simple and understandable when i check in future.
     
    Why You Shouldn’t Change Choice Values Later
    Dataverse stores the numeric value (not the label) in every record.
    So the table keeps only numbers like 0, 1, 2, 3, and the label mapping (like “Pending”, “Approved”) lives in the metadata.
    Example
    Initial setup:
    Label    Value
    Deleted    0
    Pending    1
    A record is created → Status = 1 → shows as Pending.
    Now you edit the choice set:
    Label    Value
    Deleted    1
    Pending    2
    The stored value (1) stays the same — but now it maps to Deleted 
    So the system will suddenly show Deleted instead of Pending for old records.
    That’s why changing the value after data exists can cause silent, dangerous data corruption.
     
     
  • Ram Prakash Profile Picture
    5,511 Super User 2025 Season 2 on at
    Choice field
    Hi @DELDYN

    its good to Use Large Numbers because its a Unique number (Generated by Application).

    Yes you can use 0,1 - if your are using in only one environment
     
    If you planned to move to another environment, it may cause an issue so my recommendation is to use the same number which APPLICATION Is providing
     
    Please mark as answer if my suggestion helps.
    Subscribe here for More Useful videos : https://www.youtube.com/@rampprakash3991
  • Suggested answer
    Fubar Profile Picture
    8,218 Super User 2025 Season 2 on at
    Choice field
    People are missing part of the picture.  The starting number is actually configured against your Publisher record by default it will start as a large number (but you can set it to a different number), the original intention would have been so that ranges of values could be used for different publishers/vendors so that you can easily tell what has been created by different publishers e.g. if you add to an existing list of choices you can tell the new entry from the Microsoft ones etc. as MSFT uses the lowest numbers - if you had different vendor solutions one vendor could use 10,000, and a different vendor 20,000
     
    In the old days, you had a separate menu option for Publisher, now it is hidden under where you create a new Solution.
     
    There isn't any real functional difference except if you are adding to a Microsoft or another Publishers choice list, in which case you have to be mindful of updates from them e.g. If Microsoft has 1,2,3 and you add 4 then later Microsoft adds their own 4 (you now have a problem to deal with that you don't have if yours are in a higher range).

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Tom Macfarlan – Community Spotlight

We are honored to recognize Tom Macfarlan as our Community Spotlight for October…

Leaderboard > Power Apps

Last 30 days Overall leaderboard

Featured topics