I have reordered the dataverse choices so they are in alphabetical order in UAT but when I upgrade this version to the managed solution the choices don't appear in alphabetical order.
I thought I couldn't edit the Choices in a managed solution or if I did then I would create an unmanaged layer that might cause an issue.
Can anyone advise the best method for updating the sort order?
Choices in a managed solution are not editable in the target environment.
Reordering the choices in your development or UAT environment does not directly update their order in a managed solution unless the sort order is explicitly part of the solution.
Manually editing the sort order in the target environment creates an unmanaged layer, which can conflict with future updates.
Best Methods for Updating Sort Order: Ensure Proper Ordering in Development: The sort order of choices in Dataverse is determined by their Display Order. To ensure the sort order is correct in your managed solution:
Edit Choices in Development:
Go to Tables in your dev environment.
Open the choice column (global or local choice) and reorder the choices in the desired alphabetical order.
Publish Changes:
Save and publish the changes in the dev environment.
Export the Solution:
Export the updated solution (as a managed solution if needed) and import it into UAT/Production.
Note: If the sorting doesn't seem to apply, explicitly reorder the choices even if they already appear in alphabetical order.
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.