AnsweredAssumed Answered

Duplicate a record and related records

Question asked by mdgarner on Feb 21, 2016
Latest reply on Mar 4, 2016 by user19752

I am trying to duplicate a record and its related records using the following script:Screen Shot 2016-02-21 at 12.22.09 PM.png

Script works fine when there are records in the related tables.  If the related tables contain no records, it copies all of the records in the related table to the new duplicate record.  How can I exit the Duplicate Related Record loop when there are no records?  Thank you in advance for your help,