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

Question

Question

Workflow - Store Information from For Each File Activity

asked on July 7, 2020

I have a business process that allows users to upload 0-N number of attachments when they submit a form. The process routes the attachment(s) to a folder in my repository.  In the workflow I have a For Each File activity to loop through these attachments.  It is working properly and I can get the information about each of the uploaded files. Is there a way to store the values for each file so I can access them later in an SDK activity? I need to use the information to post attachments to our internal ticketing system which I will do through an SDK activity.

Thanks.

0 0

Answer

SELECTED ANSWER
replied on July 7, 2020

Hi Bruce. I'm not quite sure what you mean by "store values for each file", but probably what will work for you is creating a multi-valued token that gets modified in each iteration of For Each File.

  1. Using Assign Token Values, create 2 custom tokens, one of which is designated as multi-valued.
  2. Within your For Each loop, you can append info to the multi-valued token.
  3. After the loop is complete, populate the other token with all of the values from the multi-valued token, concatenated with something like a comma.
  4. Use that single-value token in your script.

 

2 0

Replies

replied on July 8, 2020

Thanks Pieter! That exactly what I needed - it's working perfectly now.

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.