# AutoUpdate Property
> Version: _Available or changed with runtime version 1.0._
Sets whether a record in the database with the same primary key as the record in the imported XmlPort is updated with values from the imported record.
## Applies to
 Xml Port Table Element
## Property Value
True if the records are updated; otherwise, false. The default value is false.
## Syntax
```al
AutoUpdate = true;
```
## Remarks
When AutoUpdate is set to true, if a record exists in the database with the same primary key as a record in the imported XMLport, then the record in the database is updated with the values in the record from the XMLport. Fields that are not defined in the record from the XMLport remain the same in the record in the database.
Set AutoUpdate to true when you import a file with partial information. For example, you can use this property if you create new prices for an item list in an external file where this file only contains item numbers and prices. In this case, you would want to update the price field, while retaining the information in the other fields.
> WARNING
> If this property is set to true, then the devenv-autoreplace-property has no effect.
## Related information
devenv-autoreplace-property
devenv-autosave-property

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/properties/devenv-autoupdate-property, 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. https://jonas-paprotka.de/docs/dev-itpro/developer/properties/devenv-autoupdate-property/
