Sending last Subform Entry in email

Sending last Subform Entry in email

Hi All,

I'm new to Creator and trying to sort out some Workflows which automate emails.

My form (NCR) has a subform (NCR_Actions), the subform is used to log the actions taken against each record. I am trying to automate an email to an email address in the main form every time an NCR Action is added.

So far I have created a Workflow - Deluge Script - Subform on add row.

I have created a Send Email task in script and as part of the message I want to include the contents of the Action_Taken field of the subform. 

I am currently referring to the field as input.NCR_Actions.Action_Taken but it is pulling through the Action_Taken from the first line of the subform where I want the last one added.

Any help would be greatly appreciated.