Skip to main content
Nintex Community Menu Bar
Solved

For Each not capturing values

  • Jul 26, 2017 9:12 PM UTC
  • 4 replies
  • 58 views
  • Translate All

Forum|alt.badge.img+7

Hi,

 

I have a query that pulls in contents of a look-up column in a library. The library has 3 items.  This query is working as intended since I tested it via debug procedure (Nintex Workflow history)

 

However, when I do a for-loop using following configuration, the 'New variable 4' is outputting blanks for 3 rows. I know the count is correct but why is this outputting blanks instead of the actual column-contents?

 

Any help is much appreciated!

Best answer by greenawayr

Make sure in your query that your Output Type is Separate Output per column.

If it isn't then the collection is formatted ["ColumnName":"Value";"ColumnName";"Value"] or something similar to this. The For Each doesn't recognise this.format. If you select Separate Output per Column then the output will just be [value1,value2,value3, value4] which the For Each will recognise.

View original

4 replies

Forum|alt.badge.img+9
  • Nintex Employee
  • Jul 27, 2017 1:36 AM UTC

Hi Shanan,

Any chance you could post the data/data structure that is returned in the initial collection?

Callum

Translate

Forum|alt.badge.img+11
  • Scholar
  • Jul 27, 2017 3:12 AM UTC

Yes, I think we would need to se the actual Query action is set.

For example - you should have the Output type as Separate output per column (not Single output). This may cause blanks to appear (I seem to recall).

Translate

Forum|alt.badge.img+13
  • Novice
  • Answer
  • Jul 27, 2017 9:00 AM UTC

Make sure in your query that your Output Type is Separate Output per column.

If it isn't then the collection is formatted ["ColumnName":"Value";"ColumnName";"Value"] or something similar to this. The For Each doesn't recognise this.format. If you select Separate Output per Column then the output will just be [value1,value2,value3, value4] which the For Each will recognise.

Translate

Forum|alt.badge.img+7
  • Author
  • Jul 27, 2017 1:18 PM UTC

Thanks shaunlub‌ Ryan Greenaway‌! Both of your answers helped!

‌ thanks for the offer to help!

Translate