On insert access

On insert access

Hi,
I have created a custom action on the form A, that execute a custom function that insert a new record in a form B:


void richiestaApi(string dominio, int registrarID, int operazioneID)
{
     insert into B
    [
   Added_User = zoho.loginuser
   Dominio = input.dominio
   Operazioni_disponibili = input.operazioneID
   Registrar = input.registrarID
    ]
}

I have also created a script On insert On access on form B, but it is not executed, even if the new record has been correctly created. 
If i duplicate the new record from the browser the script is triggered...

I have found the lines below in documentation, any suggetion?

The "On Success" script associated with a form will get triggered only in the following cases:

  • When data is added from the browser
  • When data is added through API
  • When data is added through Import
  • When data is added through email data feature.