The AL developer preview is still evolving with frequent updates. Follow us on the Dynamics NAV Team Blog for the announcements.

AutoReplace Property

Sets whether imported records automatically replace existing records with the same primary key.

Applies To

Data items in XMLports.

Property Value

True if the records are replaced; otherwise, false. The default value is false.


If a record with the same primary key is found in the database, then the record is initialized with the initial value for each field and then populated with the values in the imported record. Any field in the record that is not present in the imported record retains its initial value. For more information about initial values, see InitValue Property.


If this property is set to true, then the AutoUpdate Property has no effect.

See Also

AutoUpdate Property
AutoSave Property