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

Question

Question

Retrieve business process variables, collection to multi-value

asked on December 2, 2016

I have read other posts on this topic, but can't make it work.  I understand that I need to use a "For Each Row" activity in order to get WF to save my multi-values properly, but I can't figure out how to configure it.

This is my collection field on the form; in this case the applicant entered two locations.

The WF is set up to collect the variables to be used to fill fields on a Laserfiche document, but the target field is multi-value and strictly controlled for the format.  How do I set up this For Each Row so that it knows what to collection to select?

0 0

Replies

replied on December 2, 2016

It seems like you are selecting the wrong entry for the "retrieve field value" activity.

Instead selecting the starting entry, try selecting the "current entry" which was obtained by the "for each entry activity".

Hope this helps! 

 

replied on December 2, 2016

Use For Each Value activity and in the Values point to multivalue field retrived eg %RetiveFieldValues_Location_ALL

 

then to reference each value in the iteration use

(%RetiveFieldValues_Location_ALL#[(%ForEachValue_Interation)]#)

0 0
replied on December 5, 2016

David, I'm trying this, but I cannot see where I could pick one that indicates a multi-value field.  I even tried adding the ALL to the end of my token, but of course it then shows up red because there isn't that option on mine.

0 0
replied on December 2, 2016

Can you show your settings for Retrieve Fire Permit Application Variables?

0 0
replied on December 5, 2016

Miruna, here it is.  I cannot find where to tell it to collect as a multi-value.  I see at the bottom the note that "Collection (which this one is) and table fields ... can only be accessed by using a For Each Row activity":  

0 0
replied on December 5, 2016

For any future readers looking for this answer:  I got this working without any "For Each Value" or "For Each Row" activity.  I'm not sure which part worked, but there were two things that I spotted in other posts.  In both cases, it was in the "fill out pdf fields" activity.  One change was in the gear options (top right), to put a check mark in the "Align field data", and the second thing was in the field selection:  I noticed there was a second tab in that person's screen capture. The second tab was called Table and within this table was a Pattern field where you could tell the activity to "Enable multiline mode".  It works now!

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

Sign in to reply to this post.