Hi Joyce
I recently created a similar script, however using the business partner function rather than XD01. Are you using the "New Line" button (see 1st screenshot)? If not, you will want to, and want it included in the loop so that it creates a new line after each entry. 
The parameters in the red box point to the first row - the (01) part of the field is the row number. So, without using 'New Line' button, the script will always overwrite the top row.

Hope this helps!
------------------------------
Vanessa Kutasi
Foundation Admin./Application Analyst II
Idexx Operations, Inc.
USA
------------------------------
Original Message:
Sent: 09-03-2024 11:50
From: Jody Boyce
Subject: How to add multiple email lines and notes in XD02?
Hi,
I am trying to create a new script to be able to add multiple email addresses within XD02, some with notes added on, as shown in the screenshot below.

I have created the attached script, and added a loop to continue adding new emails as long as there is data in the field, identified as 'D' in the column.
The script seems to be replacing the last email added to line ID 001, instead of adding a new line and so forth. I can't work out how to instruct Winshuttle to add a new line for the next email address, and I did include clicking on the 'add line' button in the script recording.
I know this is a possibility as we had a script do this before, but it stopped working and has now been misplaced.
Any help would be much appreciated!
Thank you
Jody
------------------------------
Jody Boyce
CAS
Johnson & Johnson Vision Care - VISTAKON
United Kingdom
------------------------------