Insert Subform row On Success Action

Insert Subform row On Success Action

Hi,

I would like to insert  row(s)  of each Subform row into a form on Success Action of Main Form. Below is the script I was trying to but it not working correctly.


for each selectedValue in input.Coverage.PCM_Fips
{
   
    insert into MVPD_Partial_Coverage
    [
        Added_User = zoho.loginuser
        MC_TVStation = input.Coverage.PCM_TVStation
        MC_MVPD = input.Coverage.PCM_MVPD
        MC_ChannelType = "0.1"
        MC_Fips = selectedValue
    ]
}


Note: PCM_Fips is the MultiSelect field. I would like to insert row for each selected PCM_Fips. see below screenshot : I like to insert total 4 rows in the desired form




Could anyone please help me to fix

Thank

Arfater