Skip to main content
Nintex Community Menu Bar
Solved

Can I conditionally attach a file to an Assigned Task message?

  • July 24, 2022
  • 1 reply
  • 5 views

SMMC_Colby

I have a Nintex Form where the applicant can select a box to allow their attached documentation to be passed on or not.

 

In a subsequent assigned task I wish to attach their documentation to the message if the applicant allowed it, but not attach it if they did not.

 

I could solve this with a branch that leads to two different assigned tasks but I'd rather not consume two very similar forms for two very similar scenarios (particularly since I have parallel tasks that could balloon if I do this).

 

Can I just conditionally attach the file/s or maybe just empty the "AttachedFile" form variable or perhaps attach a user-defined variable that I set up to contain the attached files or leave empty according to my condition? I've been experimenting with all of those things and have not found any success. Any help would be much appreciated.

Best answer by SMMC_Colby

So I finally solved this, I don't know that it's the prettiest solution but it works:


 



 


The files that an Applicant attaches in the Form are loaded into the Collection variable "File upload". I made my own Collection variable (that I called vfileDocumentation). If the checkbox was not marked as "Sensitive" then I looped through each uploaded file and added them to my vfileDocumentation Collection.


 


Then in my Message to the task assignee/s I attach "vfileDocumentation" instead of "File upload":



 


It is either empty if the Applicant selected "Sensitive" or populated if they didn't.

View original
Translate
Did this topic help you find an answer to your question?

1 reply

SMMC_Colby
  • Author
  • 2 replies
  • Answer
  • July 25, 2022

So I finally solved this, I don't know that it's the prettiest solution but it works:


 



 


The files that an Applicant attaches in the Form are loaded into the Collection variable "File upload". I made my own Collection variable (that I called vfileDocumentation). If the checkbox was not marked as "Sensitive" then I looped through each uploaded file and added them to my vfileDocumentation Collection.


 


Then in my Message to the task assignee/s I attach "vfileDocumentation" instead of "File upload":



 


It is either empty if the Applicant selected "Sensitive" or populated if they didn't.

Translate

Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie Settings