Skip to main content

Notifications

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 295

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

  • Hoang Ng Profile Picture
    Hoang Ng 295 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

  • Suggested answer
    Inge M. Bruvik Profile Picture
    Inge M. Bruvik 32,748 Super User 2024 Season 1 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.

  • Suggested answer
    Amit Baru Profile Picture
    Amit Baru 3,025 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
    Nitin Verma Profile Picture
    Nitin Verma 21,091 Super User 2024 Season 1 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 

  • Hoang Ng Profile Picture
    Hoang Ng 295 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
    Nitin Verma 21,091 Super User 2024 Season 1 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

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

News and Announcements

Announcing Category Subscriptions!

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Verified Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,359 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,370 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans