Skip to content

Replace

Replaces the contents of a file with the contents of another file.

1
myDocumentFiles.Replace(id: string, replaceWith: string):void

Parameters

string id
    The ID of the file to be replaced.

string replaceWith
    The ID of the file to replace the content with.

Examples

Replace a file with a new version

1
$Files.Replace($Xml.Evaluate('ContractFile'), $Xml.Evaluate('RevisedContractFile'));