Outro dia me perguntaram qual decisão deveria ser tomada quando fosse necessário criar uma query via objetos e eu disse que deveriamos criar as queries na AOT apenas quando fossem frequentemente reutilizadas, mas agora, lendo alguns docs da microsoft, eu achei o seguinte:

You can build a query in the AOT using MorphX or as shown in the previous topic, by dynamically creating the query by X++ code. Both approaches are used in the standard application. One advantage of making the query dynamic is that it is not public in the AOT and is protected against unintentional AOT changes. Alternatively, an advantage of creating the query in the AOT is that is can be reused in various places, saving lines of identical code, and making widereaching query adjustment easier.

Enfim, era o que eu havia dito, mas melhorado.

Abraços,
Pichler