In order to make this function work, you will likely need to grab the Result property that gives the
list of input objects. Then, you will be able to replace these inputs by using one of the UpdateToX() methods
of the ReplayHistoryResult.

You should NOT use any document AddX() or ReplaceX() functions, as they will break history.