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

Notifications

Announcements

No record found.

Community site session details

Community site session details

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

Enum value is 0 when assigned to list from list

(0) ShareShare
ReportReport
Posted on by 65

Enum-assignment.png

If you can see the image you would be able to see the enum assignment from allowanceTypes.addEnd(headerInfo.AllowanceType) statement.

I have the debugger open and within the object returned from the client side headerInfo.Allowancetype = Sales. When being assigned to the list type enum variable allowanceTypes it give me a 0 in the debugger.

Does anyone know why this is? 

I feel like this is some functionality I'm missing as I just had a similar problem with the listIterator type and the first element being unknown unless I call the method .moveNext() first. 

I have the same question (0)
  • Verified answer
    GirishS Profile Picture
    27,827 Moderator on at

    Hi JGjinx,

    Generally Enum will be stored in integer format in SQL.  Also, you are using list type for storing enum values, so you need to expand the list in the debugger and see all the values related to that list. 0 is nothing but a position of first record on the list.

    Thanks,

    Girish S.

  • JGjinx321 Profile Picture
    65 on at

    Thank you for your continued help Girish. I had the object and opened it in the debugger and where you would usually see the elements of the enum it was blank. Thanks for the explanation. Good to know it represents just the index.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

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

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 467 Super User 2025 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 420 Most Valuable Professional

#3
BillurSamdancioglu Profile Picture

BillurSamdancioglu 241 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans