You are viewing limited content. For full access, please sign in.

Question

Question

Deleting File Uploads from a Forms Table using workflow's "Set Business Process Variables"

asked on May 28

Is there any way to clear out a Table in a Forms business process using workflow? I have a form that will get reassigned to a user so they may continuously upload new files while the process is active. This needs to save the files to the repository, but it will save copies of files that were uploaded before since they are still in the Table variable. I can't rely too much on users X'ing out the previous files.

 

I was hoping to set the Table\File Upload variable to NULL but the file upload types don't seem to show up in Set Business Process Variables. 

0 0

Replies

You are not allowed to reply in this post.
replied on May 29

Hi Jakob, this is possible with Workflow, but if possible using a Rules service task is lighter and faster. 

To do this:
 - Create a Formula Rule that echoes a multivalue:
  FormulaExpression: %(input)
 - In the form's table/collection, add a hidden single-line field that's always empty, alongside the File Upload column:
    - Collection\ClearVar (hidden, always empty)
    - Collection\FileUpload
  - When clearing is desired, run a Rules service task calling this formula and pass in Collection\ClearVar as the input.
  - Map the formula output → Collection\FileUpload

You are not allowed to follow up in this post.

Sign in to reply to this post.