Copy namespace mappings programmatically

Primary tabs


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.




  • 0
  • 0
  • 281
  • 2
  • 1


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

It looks like the CopyMaps method should do the job.


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) .