DuplicateFileDocument

1
when I use this java-action of the CommunityCommons to contents of one file document into another. where - fileToClone : the source file cloneTarget : an new file document, in which the file will be stored. and it returns true which is supposed to mean the copy done successfully but when I check during debugging the new file document I found hascontents=false which means empty binary attribute So what is the mistake that I made?
asked
2 answers
1

Yes Michel, The problem is related to the version although when I checked the version , I found both are _Community Commons 1.1 BETA so I thought both are the same , so when there is any changes in any version the changed version should has different name.

answered
0

Hi Mohammad,

  • do you use the latest version from the appstore? Something concerning duplicateFileDocument was fixed in that version.
  • is 'hascontents' property of the fileToClone true? Otherwise nothing will be copied and the function just returns.
answered