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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Answered

enum2Symbol obsolete

(0) ShareShare
ReportReport
Posted on by 362

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 have the same question (0)
  • Suggested answer
    nmaenpaa Profile Picture
    101,172 Moderator on at

    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.

  • Suggested answer
    PaulNoakes Profile Picture
    48 on at

    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.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 689

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 606 Super User 2026 Season 1

#3
CP04-islander Profile Picture

CP04-islander 356

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans