web
You’re offline. This is a read only version of the page.
close
Skip to main content
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 297

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

I have the same question (0)
  • Suggested answer
    Nitin Verma Profile Picture
    21,698 Moderator on at
    RE: Where to see the string value shown in the form presented number in table

    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
    297 on at
    RE: Where to see the string value shown in the form presented number in table

    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,698 Moderator on at
    RE: Where to see the string value shown in the form presented number in table

    Hi,

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

  • Suggested answer
    Amit Baru Profile Picture
    3,037 on at
    RE: Where to see the string value shown in the form presented number in table

    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
    Inge M. Bruvik Profile Picture
    1,071 Moderator on at
    RE: Where to see the string value shown in the form presented number in table
    [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
    297 on at
    RE: Where to see the string value shown in the form presented number in table

    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

Responsible AI policies

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

Pallavi Phade – Community Spotlight

We are honored to recognize Pallavi Phade as our Community Spotlight honoree for…

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,921

#2
YUN ZHU Profile Picture

YUN ZHU 2,012 Super User 2025 Season 2

#3
Jainam M. Kothari Profile Picture

Jainam M. Kothari 1,999 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans