File upload field uploading document even on cancel scenario

Hi All,

We have a requirement to upload a document which creates a new version of the existing document upon click of 'Submit' button and do not create upon click of 'Cancel button' (both buttons will submit the form).

Currently, Submitting the form (either through submit/cancel buttons) is creating a new version even though I am saving null value to uploaded files input upon click of 'Cancel' button.

I could see the below in appian documentation.

  • When implementing form cancel behavior via a submission, remember that the uploaded files are moved to the target on submission. If this is undesirable in a cancel scenario, it should be deleted (if target is a folder) or reverted via a new version (if the target is a document) by the process after submission.

but how can we revert the document to the previous version? Is there any function to delete the current version of a document or get a particular version of a document?

(even the Create new version smart service is deprecated)

  Discussion posts and replies are publicly visible

Parents
  • @nathan.schmitz @aloks176, Thanks for the suggestion, we are already handling this issue as sameway that you are mentioned.
    I am hoping that appian will provide some functionality to handle this situation in feature releases.
  • 0
    Certified Lead Developer
    in reply to venkateshamu
    Along with the other prior commentors, our system also handles document versioning via a custom-built system (moving it around different target folders, with designated folders for "current versions", "old versions" and "deleted versions".

    This handles frustrations like you mention, as well as the fact that Appian versioning doesn't allow for a new version to be created with a document of a different extension (so users would try to replace a ".doc" with a ".docx" and not understand why they couldn't - partly because Windows still stupidly hides extenions by default, even though it's now 2017 and not 1997...)

    However i'm dismayed to hear that not even nulling-out the uploaded document when "cancel" is clicked woult prevent the existing version from being overwritten. This does seem like a gap in functionality.
Reply
  • 0
    Certified Lead Developer
    in reply to venkateshamu
    Along with the other prior commentors, our system also handles document versioning via a custom-built system (moving it around different target folders, with designated folders for "current versions", "old versions" and "deleted versions".

    This handles frustrations like you mention, as well as the fact that Appian versioning doesn't allow for a new version to be created with a document of a different extension (so users would try to replace a ".doc" with a ".docx" and not understand why they couldn't - partly because Windows still stupidly hides extenions by default, even though it's now 2017 and not 1997...)

    However i'm dismayed to hear that not even nulling-out the uploaded document when "cancel" is clicked woult prevent the existing version from being overwritten. This does seem like a gap in functionality.
Children
No Data