Get GST TCS and TDS Values before posting of Document in D365 BC:
(1) In this blog we will get to know about how to get tax components values before posting of Sales and Purchase document in Business Central D365.
(2) First create a new page of “Tax Transaction Value” and then accordingly write the code. This table contains all the tax-related entries as shown.

(3) Note: For getting the values before posting, you must check the below points.
- Value ID
- Percentage
- Tax Type
- The system shows value Document Line wise (Tax Record ID)
(4) For the Sales & Purchase Document, the source code is given below.
- For GST Components:


For TCS:

For TDS:

(5) In this way we will get the value of tax components and use the above source code and print the values as per the requirement.