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

Discussion

Discussion

Workflow - Problem appending data into a multi-value field when fields are grouped

posted on July 22, 2019 Show version history

In workflow, if you have multi-value fields and you append data, it always appends to the last index + 1 of the array.

If you enable grouping however, it appends to the index current group count + 1 instead of the actual field's last index + 1

If you then disable the groups, and re-enable the groups, the data for the field finally moves to the correct index. Here is an example:

Starting entry looks like this, with no values yet for Field 2

Workflow will append field values to Field2

Now I have 4 values for each field, 2 blank values were inserted to each array.

When I ungroup the fields suddenly the arrays go back to normal with only 2 values each.

Then when I re-group they stay corrected

0 0
replied on July 22, 2019

This is the expected behavior. Workflow will not guess whether you meant to append as new groups or starting in the last blank element in the existing groups.

If you want to fill in existing groups, you're going to have to read them out, rebuild them and set them back in overwriting the existing values.

2 0
replied on July 22, 2019

Oh, we did end up doing that as a temporary workaround, but I did not know that workflow could see group settings, I thought it was still working with standard multi-value fields and groups were just a visual change that matched by index.

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

Sign in to reply to this post.