AnsweredAssumed Answered

Looping Script- Help

Question asked by mjbenun on Jun 13, 2018
Latest reply on Jun 13, 2018 by mjbenun

I am having problems with the script below,  which does the following:

1. Goes to a related record

2. Saves the records as an excel file, using a formula to name the file.

3. Puts the resulting excel file on my desktop


This works fine, but I tried to make this routine loop (see highlighted portion) and it only does 1 record and then stops. 

Strangely enough, if I run the script a second time on the found set it then proceeds to perform the loop correctly..

Not sure what I'm doing wrong.  Please see below.