I have not used the setNextRequest, but I have used a function to make a sendRequest call against a list of values.
see this comment I made - How Can One Terminate Executing a Request From Within Pre-Request Script?
I have not used the setNextRequest, but I have used a function to make a sendRequest call against a list of values.
see this comment I made - How Can One Terminate Executing a Request From Within Pre-Request Script?