Community
Hi,
I am trying to replace file references via the API. So far I have this:
Can you check that the objPar.ResolvedFullFileName returns a valid path? And also please make sure that the document being replaced share the same internal name with the replacement one.
See below remarks for ReplaceReference method in help:
The file being replaced and the replacement file must share ancestry (i.e. they must have the same InternalName). Documents have the same internal name if they are copied using 'Save Copy As' or a file explorer copy.