hello, in JDE the number of attachments to an invoice can vary, there could be none, 1, 2, 3…see attached, in this case there are three.
I need to figure out how many of them before looping through each one to download. I tried to use “find children” but the count always returns 1. Please help.
@Lynn_Song ,
For Each UI element activity is best suited here. This will let you download each attachment without need to know how many are there. Try it.
Thanks,
Ashok
Thanks! What activity should I use to create the collection first? I used find children but it only had one element when I count it
Anil_G
(Anil Gorthi)
October 18, 2024, 8:13pm
4
@Lynn_Song
For each ui element itself is an activity which can identify similar elements and will loop on them
Alternately try to use idx in selector and xan use in combination with check app state…so till check app state returns false the loop can be continued
Cheers
Lynn_Song
(LynnS)
October 18, 2024, 10:00pm
5
Thank you so much for your help! I ended up using the check app state as for each ui elements didn’t work.
1 Like
system
(system)
Closed
October 21, 2024, 10:00pm
6
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.