Changing Schema in AL Development
In software development, it is rare that you get it right the first time. The rules for AL extensions are very unforgiving and if you accidentally create a field with the wrong type, you can find yourself unable to change it. Fortunately there is a way to handle this. By inserting a schema SchemaUpdateMode value into your launch.json you can control exactly how deploying your development app handles the data. There are three values: ForceSync: This pushes schema changes through, deleting any incompatible data. Recreate: Completely deletes your tables and data and creates them from scratch. This is useful if you have a setup routine that creates data. Synchronize: This is the default update mode. It allows the least flexibility but should not be used unless you know what your changing and don't have prior versions deployed already. If you choose to use ForceSync or Recreate modes, change the SchemaUpdateMode back to synchronize once you are done...