Announcements
No record found.
Hi all,
with the new version of d365fo(10.0.6 pu30) the compiler tell me that the global function enum2symbol is now obsolete and harmful.
which method could i use instead of enum2symbol?
i need to return the name of the enum element.
Thanks.
Nino
I don't have a PU30 system at hand. But in general in these cases you can check how the standard system is handling these requirements now. So you can use Find references in a pre-PU30 system and see which standard classes use enum2symbol. And then check in PU30 if they have been changed.
The compilation warning goes away by wrapping the enum value with an explicit cast to int:
str sym = enum2Symbol(enumNum(YourEnumHere), enum2int(yourEnumValueHere));
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.
Congratulations to our 2026 Super Stars!
We are thrilled to have these Champions in our Community!
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Giorgio Bonacorsi 689
André Arnaud de Cal... 606 Super User 2026 Season 1
CP04-islander 356