If not working when being used in a For Each Loop - Flow Designer.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
yesterday
Hi Team,
I have a requirement where I would need to need to look up the JIRA spoke and then get the Projects using the For Each along with all its details - ID, Name, Key, etc. and then map it to my custom table.
Till here I am able to achieve my requirement and also getting the logs.
However, I now want to check for a particular record from the For Each loop and then get the logs.
I am using IF inside the For Each loop to get the sys id.
However, my IF is always returning false, since it is only checking for the first record.
Can someone please help me out on this?
Thank you,
Ayshee Chattopadhyay
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
an hour ago
You may want to double-check the execution details for each iteration of the For Each loop.
From what you described, the screenshot only shows the first iteration. In Flow Execution details, right next to the For Each step, there is a small box showing [1] of 516. That means you are currently viewing iteration 1 out of 516.
You can manually change the number in that box to navigate through the other iterations. So the loop may be running correctly for all records, but you are only seeing the first one in the UI.
Also, check the system property com.snc.process_flow.reporting.datastream.item.lastn in your instance. This property controls how many recent iterations are reported in execution details for a For Each data stream consumer.
