Replication.addDefaultDirectories (Method)

Adds records for the default and built-in-box directories that the CommonSpot replicator scans when it looks for file system changes.

Returns:

Void

Arguments:

Name Type Required Description
type ReplicationDirType Required A string indicating the type of the directory, as follows: 'ExternalDirectory', 'SiteRelative', and 'Subsite Relative'.

Context:

License Requirements Replication
Permission Requirements site:ManageReplication
Deny Context None
Require Context AuthoringEnabled
Author Lock (not required)
Transaction Logging If transaction logging is enabled at the server level, calls to this method will be logged
Customization This method may be customized at the site level

Error Codes:

Code Error Message
36028 No subsite having an ID of 1 exists.

Notes:

None