The General Journal, User see the string of the Document Type: Payment, Invoice, Credit Memo, etc
But in GL Entry, they are store as 0, 1, 2,3.
How I know exactly Number 0 presents for Invoice or Credit Memo
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
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.
you can still join with their index values as Bc will understand it automatically
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
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.
I created new SQL Table to contain the value list, later I will do Inner Join
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.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Pallavi Phade as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
OussamaSabbouh 2,921
YUN ZHU 2,012 Super User 2025 Season 2
Jainam M. Kothari 1,999 Super User 2025 Season 2