Documentation Center

Exposing custom APIs in your Automatic Activity C# script or Activity expiration C# script

If you have custom .NET assemblies whose API you would like to expose in all of your workflow C# script fragments, configure them in the Content Manager configuration file, Tridion.ContentManager.config, in the cSharpSourceCodeReferences section.

Procedure

  1. On your Content Manager server, navigate to %TRIDION_HOME%\config\.
  2. Open Tridion.ContentManager.config for editing.
  3. Inside the cSharpSourceCodeReferences section, add a new add element with the following attribute-value pairs:
    target
    Set to Workflow or, if you also want to make this assembly available to your templating C# fragments, set to Templating, Workflow instead.
    assemblyName
    Set to the fully qualified name of your assembly in the Global Assembly Cache, MyOrg.Foo.Client, Version=1.2.0.0, Culture=neutral, PublicKeyToken= ddfc895711d50a3a for example. If you specify this attribute, you do not need to specify an assemblyFileName attribute.
    assemblyFileName
    Set to the full path to the DLL file containing your custom .NET assembly, c:\MyAssemblies\MyAssembly.dll for example. If you specify this attribute, you do not need to specify an assemblyName attribute.
  4. Within this new add element, specify one or more namespaces in one or more add elements, each of which must have a namespace attribute set to the name of the namespace.
  5. Save and close Tridion.ContentManager.config.
  6. Restart Content Manager.