Forum Discussion

anhht-hue's avatar
anhht-hue
Ideator III
6 years ago
Solved

How to update file attached to Document without remove old file and re-add ?

Hi everybody, please support me for this situation, In my case, 1. I created new Document and attached a text file (Document generation = 1) 2. When I update Document, If file is attached have ...
  • Hello,

    The simplest solution to this would be to use the version="0" attribute on your Document in the query you run in step 2. This will prevent the Document from being versioned when you delete the file with the same name. You can also check out this blog post for some other handy attributes you can use in AML queries. 

    Chris


    Christopher Gillis

    Aras Labs Software Engineer