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 :
Small and medium business | Business Central, N...
Answered

Where to see the string value shown in the form presented number in table

(0) ShareShare
ReportReport
Posted on by 307

The General Journal, User see the string of the Document Type: Payment, Invoice, Credit Memo, etc

pastedimage1664362765682v1.png

But in GL Entry, they are store as 0, 1, 2,3.

How I know exactly Number 0 presents for Invoice or Credit Memo

pastedimage1664363035061v2.png

  • Suggested answer
    Nitin Verma Profile Picture
    21,812 Moderator on at

    Hi,

    In SQL table it shows like this only, you can start counting from 0 in BC. That is the index value of the option type

    so now in your case its

    0 = Blank

    1= Payment

    2 = Invoice

    3=Credit Memo

    4=Finance Charge Memo

    5 = Reminder

    6 = Refund

  • Hoang Ng Profile Picture
    307 on at

    Thanks Nitin

    Is there any table that define this so it can be easier to join table together ?

    There are many columns have the value list as same as Document Type, I would like to know about them.

  • Suggested answer
    Nitin Verma Profile Picture
    21,812 Moderator on at

    Hi,

    you can still join with their index values as Bc will understand it automatically 

  • Suggested answer
    Amit Baru Profile Picture
    3,043 on at

    Hi,

    In SQL Option fields of BC D365 shown in the numbers.

    Pls use Case Statement in SQL and write Case 1 = Payment and so on.

    https://erpconsultors.com/how-to-use-case-statement-in-d365-bc/

    If not solve, pls send SQL Query i wll correct it.

    Regards

    Amit Sharma

    www.erpconsultors.com

  • Suggested answer
    IB-29041624-0 Profile Picture
    1,191 Moderator on at
    [quote user="Peter Ng"]

    Thanks Nitin

    Is there any table that define this so it can be easier to join table together ?

    There are many columns have the value list as same as Document Type, I would like to know about them.

    [/quote]

    The option fields are a zero based index so the first option you see in the list will always have value 0 and the second one will have the integer value 1 and so on.

    And in code you can use the option value if you use the syntax fieldname::OptionCaption.

    And there is intellisense so AL will help you display the option capotions when you add the double colon.

  • Hoang Ng Profile Picture
    307 on at

    I created new SQL Table to contain the value list, later I will do Inner Join 

    pastedimage1664379319925v1.png

    pastedimage1664379339228v2.png

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 570 Super User 2026 Season 2

#2
YUN ZHU Profile Picture

YUN ZHU 390 Super User 2026 Season 2

#3
Teagen Boll Profile Picture

Teagen Boll 220 Super User 2026 Season 2

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans