Add a record based on a subform answer

Add a record based on a subform answer

Hi all,

Wonder if you can help.

I'm trying to add a record into a form based on a subform answer in a separate form

I've trying a workflow with the below

if(Asset_Register.Asset_Name == "Access Equipment")
{
input.Asset_Register = insert into Testing_PPM
[
Development_Name=input.Development_Name
Maintenance_or_Plan_Requirement=39703000000167523 (ID Number)
Testing_Category1="Quarterly"
Added_User=zoho.loginuser
];
}

But it doesn't add the record into the form.

Any ideas?

Thanks!