The help states: 'When the action executes, the "OnReadLine" event is called for each line of the text file which makes it easy to process the file line-by-line in script. '
Great so it is easy to process a line
But how can I get this event to call an action (SendEmail)?
Hi Paul,
The preferred approach to iterating over the lines in a text file is to use the ‘File Contents Iterator’ which you would then add a Send Email action as a child to send an email for each line. The OnReadLine event of the Read Text File action is there only to execute script on each line of the file, not to execute actions.
Regards,
Paul.