{"title":"Tax engine - Lookup","url":"https://jonas-paprotka.de/docs/localfunctionality/india/taxengine-004-lookup/","by":"JOP-AL","license":"Copyright (c) Microsoft Corporation. CC BY 4.0, https://creativecommons.org/licenses/by/4.0/; code samples MIT. From https://learn.microsoft.com/en-us/dynamics365/business-central/localfunctionality/india/taxengine-004-lookup, MicrosoftDocs/dynamics365smb-docs at 46907ac (2026-11-19). Changed: includes filled in, links to this site, and for agents shortened without dropping a fact.","credit":"Microsoft Corporation, CC BY 4.0","origin":"https://learn.microsoft.com/en-us/dynamics365/business-central/localfunctionality/india/taxengine-004-lookup","source":{"name":"Business Central application docs","repo":"https://github.com/MicrosoftDocs/dynamics365smb-docs","commit":"46907ace177f8d31deba47a2fdb57c3336e66252","date":"2026-11-19"},"checked":"2026-11-19","description":"Provides an overview of the Lookup utility in the Tax Engine for fetching values from various sources in Business Central (India).","date":"2026-10-21","meta":{"topic":"reference"},"outline":[{"level":1,"title":"Tax engine - Lookup","slug":"tax-engine---lookup","at":0,"chars":2792},{"level":2,"title":"Lookup source types","slug":"lookup-source-types","at":128,"chars":2469},{"level":3,"title":"Current record","slug":"current-record","at":211,"chars":108},{"level":3,"title":"Variable","slug":"variable","at":319,"chars":74},{"level":3,"title":"Table","slug":"table","at":393,"chars":1205},{"level":3,"title":"Database","slug":"database","at":1598,"chars":114},{"level":3,"title":"System","slug":"system","at":1712,"chars":77},{"level":3,"title":"Tax attribute","slug":"tax-attribute","at":1789,"chars":70},{"level":3,"title":"Component","slug":"component","at":1859,"chars":143},{"level":3,"title":"Record variable","slug":"record-variable","at":2002,"chars":102},{"level":3,"title":"Component percent","slug":"component-percent","at":2104,"chars":87},{"level":3,"title":"Column","slug":"column","at":2191,"chars":82},{"level":3,"title":"Attribute table","slug":"attribute-table","at":2273,"chars":151},{"level":3,"title":"Posting","slug":"posting","at":2424,"chars":173},{"level":2,"title":"Related information","slug":"related-information","at":2597,"chars":195}],"text":"# Tax engine - Lookup\nUse a lookup to get a value from a record, a variable, or another supported source for tax configuration.\n## Lookup source types\nThe source type identifies where the lookup gets its value.\n### Current record\nGets a field value from the current record, which is the source record for the use case.\n### Variable\nGets the value of a variable defined in the use case script.\n### Table\nGets a field value or an aggregate from a table. Use filters to define the relationship between that table and the current record. This lookup is similar to a CalcFormula in AL.\n Table Name: Specify the table from where the value is to be picked.\n Table Filters: Specify the relationship between the current record and the table from where the value is to be picked.\n Table Sorting: Specifies the fields used to sort records for the First and Last methods. If no sorting is specified, the table's default key is used. The Min and Max methods sort by the selected field.\n Field Name: Value is picked from this field based on the method you have selected.\n Method:\n   First: Value is picked from the first record.\n   Last: Value is picked from the last record.\n   Sum: Calculate sum of all values from a selected field after applying table filters.\n   Average: Calculate average value from a selected field after applying table filters.\n   Min: Min value from a selected field after applying table filters.\n   Max: Max value from a selected field after applying table filters.\n   Count: Count of records after applying table filters.\n   Exist: Returns whether any records match the table filters.\n### Database\nGets the current USERID, COMPANYNAME, SERIALNUMBER, TENANTID, SESSIONID, or SERVICEINSTANCEID value.\n### System\nGets the current TIME, TODAY, WORKDATE, or CURRENTDATETIME value.\n### Tax attribute\nTax attributes defined with tax type can be picked.\n### Component\nGets a calculated tax component amount from the use case. Use Component percent to get the percentage from the tax rate instead.\n### Record variable\nThe value of a 'Record variable' field used in 'use case' variable can be picked.\n### Component percent\n'Tax Component Percent' captured from 'Tax Rates' can be picked.\n### Column\nValue of 'Tax Rate Parameter' captured from 'Tax Rates' can be picked.\n### Attribute table\nGets an attribute value from a record in another table. Specify the table, the attribute, and the filters used to find the record.\n### Posting\nUse Posting Field to get values available during document posting, such as Dimension Set ID, Gen. Bus. Posting Group, Gen. Prod. Posting Group, or G/L Entry No.\n## Related information\nTax Engine Script<taxengine-005-script-activities>\nFind free e-learning modules for Business Central here<https://learn.microsoft.com/training/dynamics365/business-central>"}