Unfortunately, this doesn’t work. Atlas app services translates the variable upon setting and then hard-codes it. Changing the environment from Development to Testing or some other type doesn’t change the database thereafter. Also I’m getting errors when trying to enable sync such as:
recoverable event subscription error encountered: failed to configure namespaces for sync: failed to configure namespace ns=‘%%environment.values.slm_database_name.User’ for sync: error ensuring namespace exists: (InvalidNamespace) ‘.’ is an invalid character in a db name: %%environment.values.slm_database_name