{"title":"Database.DataFileInformation(Boolean, var Text, var Text, var Boolean, var Boolean, var Boolean, var Text, var DateTime, var Record) Method","url":"https://jonas-paprotka.de/docs/dev-itpro/developer/methods-auto/database/database-datafileinformation-method/","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/dev-itpro/developer/methods-auto/database/database-datafileinformation-method, MicrosoftDocs/dynamics365smb-devitpro-pb at 828b6ee (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/dev-itpro/developer/methods-auto/database/database-datafileinformation-method","source":{"name":"Business Central developer and IT pro docs","repo":"https://github.com/MicrosoftDocs/dynamics365smb-devitpro-pb","commit":"828b6ee72fcd75755627cd6011f3d20899217ab2","date":"2026-11-19"},"checked":"2026-11-19","description":"Specifies data from a file that has been exported from a database.","date":"2026-10-01","meta":{"topic":"reference"},"outline":[{"level":1,"title":"Database.DataFileInformation(Boolean, var Text, var Text, var Boolean, var Boolean, var Boolean, var Text, var DateTime, var Record) Method","slug":"databasedatafileinformationboolean-var-text-var-text-var-boolean-var-boolean-var-boolean-var-text-var-datetime-var-record-method","at":0,"chars":2480},{"level":2,"title":"Syntax","slug":"syntax","at":341,"chars":361},{"level":2,"title":"Parameters","slug":"parameters","at":702,"chars":1404},{"level":2,"title":"Return Value","slug":"return-value","at":2106,"chars":238},{"level":2,"title":"Related information","slug":"related-information","at":2344,"chars":136}],"text":"# Database.DataFileInformation(Boolean, var Text, var Text, var Boolean, var Boolean, var Boolean, var Text, var DateTime, var Record) Method\n> Version: _Available or changed with runtime version 1.0._\nSpecifies data from a file that has been exported from a database.\n> NOTE\n> This method is supported only in Business Central on-premises.\n## Syntax\n```al\n[Ok := ]  Database.DataFileInformation(ShowDialog: Boolean, var FileName: Text, var Description: Text, var HasApplication: Boolean, var HasApplicationData: Boolean, var HasGlobalData: Boolean, var tenantId: Text, var exportDate: DateTime, var CompanyRecord: Record)\n```\n> NOTE\n> This method can be invoked without specifying the data type name.\n## Parameters\nShowDialog\nType: ../boolean/boolean-data-type\nSpecifies if you want to display a dialog box where the user can confirm the action.\nFileName\nType: ../text/text-data-type\nSpecifies the name and location of the file that you want to read information from. The file must have been exported from a database.\nDescription\nType: ../text/text-data-type\nHasApplication\nType: ../boolean/boolean-data-type\nSpecifies if the file contains application objects. Create a variable of type Boolean to specify this parameter.\nHasApplicationData\nType: ../boolean/boolean-data-type\nSpecifies if the file contains the data that defines the application in the database. This includes the permissions, permission sets, profiles, and style sheets. Create a variable of type Boolean to specify this parameter.\nHasGlobalData\nType: ../boolean/boolean-data-type\nSpecifies if the file contains global, non-company specific data. Create a variable of type Boolean to specify this parameter.\ntenantId\nType: ../text/text-data-type\nSpecifies the tenant ID of the database that the data was exported from. Create a variable of type Text to specify this parameter.\nexportDate\nType: ../datetime/datetime-data-type\nSpecifies the date and time when the data was exported. Create a variable of type DateTime to specify this parameter.\nCompanyRecord\nType: ../record/record-data-type\nSpecifies the company or companies in the file.\n## Return Value\n*[Optional] Ok*\nType: ../boolean/boolean-data-type\ntrue if the operation was successful; otherwise false. If you omit this optional return value and the operation does not execute successfully, a runtime error will occur.\n## Related information\ndatabase-data-type\nGet Started with AL<../../devenv-get-started>\nDeveloping Extensions<../../devenv-dev-overview>"}