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. 

  • JGjinx321 Profile Picture
    65 on at
    RE: Enum value is 0 when assigned to list from list

    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.

  • Verified answer
    GirishS Profile Picture
    27,825 Moderator on at
    RE: Enum value is 0 when assigned to list from list

    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.

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Jonas ”Jones” Melgaard – Community Spotlight

We are honored to recognize Jonas "Jones" Melgaard as our April 2025…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 294,349 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 233,029 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,158 Moderator

Leaderboard

Product updates

Dynamics 365 release plans