Question
You are cleaning up sandbox environments for a company.
The company requires data to be cleared from the environments each time an extension is published.
You need to configure the launch.json file.
Which schemaUpdateMode property should you set?
- A. ForceUpgrade
- B. ForceSync
- C. Synchronize
- D. Recreate Correct
Explanation
With schemaUpdateMode set to Recreate, all the extension's tables and table extensions are recreated at every publish, so their data is lost and you start with empty records. Synchronize, the default, keeps the data you entered earlier. ForceSync allows more schema changes while preserving data in almost all cases. ForceUpgrade is not a schemaUpdateMode value; forceUpgrade is a separate launch.json setting for running upgrade codeunits.