Skip to main content

Notifications

Announcements

No record found.

Customer experience | Sales, Customer Insights,...
Suggested answer

Sorting OptionSet based on Label

(0) ShareShare
ReportReport
Posted on by 8

Hi, 

We have an option set field with Label and Values as: Medium(0), Low(1) and High(2), when showing this option set on chart they come up in random order and client wants to show them in order of priority like: High, Medium and Low. 

If i change the values like (High(0), Medium(1) and Low(2) to show in the correct order i know this will sort my order but issue is it will then muddle up the data in Production due to change of labels which was High before will be now Low etc..

What is the best way to sort chart based on Labels or if i change the values how to the correct the data mapping?

Thanks,

PS

  • Suggested answer
    Mahendar Pal Profile Picture
    Mahendar Pal 45,095 on at
    RE: Sorting OptionSet based on Label

    Hi,

    You can't do that but to implement your requirement you can do what you are doing and update your existing data using new order so that all the data will be in the correct format.

    You can follow below steps:

    1. You can create a dummy txt field in your entity to hold old value

    2.  Go to Advaned Find, add your old field and new field and add condtion where your old field contains data, export it.

    3. Copy old field value to txt field (so old field labels will be copied  to new field)

    4. Import this list back to CRM

    5. Modify your old field and change order

    6. Export same excel again and now copy value from txt field to your option set field,

    7. Reimport it back.

    Now you will have correct order and all the existing data is updated.

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

Congratulations 2024 Spotlight Honorees!

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December!

Congratulations to our December super stars! 🥳

Get Started Blogging in the Community

Hosted or syndicated blogging is available! ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,661 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,379 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans