AnsweredAssumed Answered

Help with a script to add portal rows

Question asked by ebruml on Aug 10, 2012
Latest reply on Aug 14, 2012 by karendweaver

I have followed a vidoe to create a script that should automatically create a number of records in a portal once it has checked that the number of portal rows is not equal to 0.

The script works except that it only creates the last row, eg only one row created instead of three. Any suggestions on how to fix very gratefully recieved.

 

Loop

If [contacts;;contact_type = "actor"]

Go to Portal Row [Select; Last]

Set Field [tasks::task; "contact actor"]

Go to Portal Row [Select; Last]

Set Field [tasks::task; "phone actor"]

Go to Portal Row [Select; Last]

Set Field [tasks::task; "contract for actor"]

Else

Go to Portal Row [Select; Last]

Set Field [tasks::task; "contact writer"]

End If

Go to Record/Request/Page [Next; Exit after last]

End Loop

Outcomes