Copy namespace mappings programmatically

Hi,

is there a way to copy namespace mappings from another namespace to a new namespace programmatically with a command?

When using management portal there is an option to choose an existing namespace to copy the mappings from, I'm basically looking for the equivalent from command line / COS.

 

Thanks

Martin

  • 0
  • 0
  • 247
  • 2
  • 1

Answers

Take a look at the Config.Namespaces class in the %SYS namespace.

It looks like the CopyMaps method should do the job.

Comments

If you want to propagate mappings across all namespaces you can create %All namespace and map there. All mappings into %All namespace are visible everywhere (except for samples and docbook) .