Updating version of existing file.

There is a dropdown having all the names of files stored in knowledge center. User will select the desired file and click on update button. After clicking on the button, the desired file should be updated. I have saved the selected file in a new process variable of type document in script task and then given the same variable as target output in user input task having the value of the new file upload variable. Its giving an error "Invalid Destination Folder".Please help.

OriginalPostID-237323

  Discussion posts and replies are publicly visible

Parents
  • @amitas Would you please be able to attach the code here so that the practitioners can take a look at it?. As long as your intention is to create a new version of a document, the target should be the variable which holds the document you are desiring to create the version for.

    The 'target' attribute in the documentation at https://forum.appian.com/suite/help/16.2/SAIL_Components.html#FileUpload says "Determines the eventual location of the uploaded file. When a Folder, the uploaded file is created as a document in that folder. When a Document, the uploaded file is created as a new version of that document."
Reply
  • @amitas Would you please be able to attach the code here so that the practitioners can take a look at it?. As long as your intention is to create a new version of a document, the target should be the variable which holds the document you are desiring to create the version for.

    The 'target' attribute in the documentation at https://forum.appian.com/suite/help/16.2/SAIL_Components.html#FileUpload says "Determines the eventual location of the uploaded file. When a Folder, the uploaded file is created as a document in that folder. When a Document, the uploaded file is created as a new version of that document."
Children
No Data