Environment Library API

  •  03-04-2008, 12:53 PM

    Environment Library API

    Hi All,

    I've got a process developed and wondered if I could write some custom code (in a windows or console app) to re-create the Environment Settings in the Workspace on the new environment.  I can't find any class reference or guidance.  I've got this far ...

    // get the environment fields

    EnvironmentFieldCollection fields = envManager.CurrentEnvironment.EnvironmentFields;

    // add a field 

    fields.Add(...);

    // save the updates 

    bool success = envManager.CurrentEnvironment.SaveUpdate();

     

    I'm stuck around what types of fields to add and the classes they use.  I cant use EnvironmentField as its an abstract class.

    Any ideas?

    Thanks

    Dave

View Complete Thread