Accessing attributes of other instances

I’ve seen reference in some of the threads to setting up a “Configuration Domain” with environment specific secrets and config strings.

In an automate method you can easily access attributes of the running instance with:
foo = $evm.object['bar']

foo = $evm.object.decrypt('bar')

But how would one reach out to a different automate instance schema and pull attributes from it?

You can instantiate other instances. If there are methods on it, they will run too.

cfg = $evm.instantiate('/path/to/other/instance/configuration')
username = cfg['username']
password = cfg.decrypt('password')
1 Like

Thanks much! Just implemented this today.
This was a blocking my efforts to get SCM in place for promoting automate code through environments, but no longer.