Set the launch.json schemaUpdateMode to Recreate to clear table data automatically on every extension publish in a sandbox
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?
Community Votes
100% of anonymous learners picked answer D. Votes are pick records left by other test-takers — they are not the verified answer.
Community Insight
Recreate is the mode that wipes data on every publish; Synchronize and ForceSync keep existing data, and ForceUpgrade runs upgrade code but does not recreate tables. The requirement to clear data each publish points directly to Recreate.
The schemaUpdateMode setting in the AL launch.json file controls how the database schema is handled during publishing. Setting it to Recreate recreates all tables and table extensions on each publish, which removes all data in those tables.
Do not choose Synchronize, ForceSync, or ForceUpgrade when the goal is to lose all data on every publish, because those modes preserve data. Recreate is the only mode that recreates tables each time.
Community Discussion (4 comments)
Comments & Corrections
No comments yet — spotted an error or have a note? Share it below.