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

Is it possible to sort values in Related Record JSON? #594

Open
PawelWozniak opened this issue Dec 14, 2023 · 3 comments
Open

Is it possible to sort values in Related Record JSON? #594

PawelWozniak opened this issue Dec 14, 2023 · 3 comments
Labels
Layer: Log Management Items related to the custom objects & Logger Console app Type: Enhancement New feature or request

Comments

@PawelWozniak
Copy link

New Feature Summary

In error log field "Related Record JSON" I see this:
2023-12-14_14h37_35
I would like to see it sorted from A to Z.

Why?
I got null pointer exception and want to check EndDate field value. I am expecting to have it at the top but list is unordered.
This is "Nice to have" as I can use search currently but it would be usefull to sort Map keys before it is converted to JSON.

Possible solution:
Probably you need to create List out of Map.keyset() then sort it and rebuild MAP again.

@PawelWozniak PawelWozniak added the Type: Enhancement New feature or request label Dec 14, 2023
@JMercie
Copy link
Contributor

JMercie commented Dec 18, 2023

I can try working out on this @jongpie, if you need help on it 😄

@jongpie
Copy link
Owner

jongpie commented Jan 20, 2024

@PawelWozniak thanks for the suggestion! And @JMercie thanks for offering to help! For now, let's hold off on this enhancement - I am exploring the possibility of adding some new LWCs to the LogEntry__c page, and I am thinking of keeping the underlying data as-is, but using an LWC to handle sorting the JSON data. I'm going to explore this approach a bit more before I decide how to best handle this

@jongpie jongpie added the Layer: Log Management Items related to the custom objects & Logger Console app label Jan 20, 2024
@JMercie
Copy link
Contributor

JMercie commented Jan 21, 2024

@jongpie hey, that's awesome!! Let me know if I can help with it! I would love to do it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Layer: Log Management Items related to the custom objects & Logger Console app Type: Enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants