HOW TO Get Related Records from Zoho CRM with custom module ?

HOW TO Get Related Records from Zoho CRM with custom module ?

Hello, 

I dont find any réponse, how to get all related Records of a custom module assigned to account module ? 

My code : 
lst_contrats = zoho.crm.getRelatedRecords("Contrats", "Accounts", account_id.toLong());

Contrats is my custom module

And Each contrat has a relation with account, Exemple of records Contrat : 

In bold, the relation with account module. 

  • {"Owner":{"name":"Sxxxxxx Jéxxxxxe","id":"2005640000xxxxxxx9","email":"jxxxxxxxxxr"},"Email":null,"$currency_symbol":"\u20ac","Montant_de_setup_TTC":null,"P_riodicit_recontacte":"1 fois tous les 3 mois","Date_de_fin_du_contrat":null,"run":false,"Offre_de_service":null,"Name":"CTxxxx7-2466","Last_Activity_Time":"2021-07-08T16:06:07+02:00","fk_product":null,"fk_soc":null,"$state":"save","Unsubscribed_Mode":null,"$process_flow":false,"Exchange_Rate":1,"Motif_de_cl_ture":null,"Currency":"EUR","ID_de_la_facture_periodique":null,"Message_cr_ation":null,"id":"20xxxxxxxxx73094","E_mail_temporaire_Pr_activation":null,"Affiche_admin":false,"fk_contrat":null,"$approved":true,"$approval":{"delegate":false,"approve":false,"reject":false,"resubmit":false},"Suivi_par":null,"Date_de_mise_en_service":null,"data_tmp":null,"Created_Time":"2021-07-08T16:06:06+02:00","Total_TTC":null,"Duree_contrat_en_mois":null,"Cl_tur_par":null,"$editable":true,"Contact_facturation":null,"Montant_r_current_TTC":null,"Montant_autres_services_TTC":null,"fk_contrat_detail":null,"Total_HT":null,"Remarques":null,"Mandat_de_cr_ation_de_compte":null,"Activation_profil_vendeur":false,"Created_By":{"name":"SxxxxxR Jxxxx","id":"20056xxxxxxx009","email":"xxxxxxxxx@xxxx.xx"},"Nom_du_compte":{"name":"fffffffffO","id":"2xxxxxxxxx84"},"Secondary_Email":null,"Description":null,"Num_ro_de_contrat":"2466","$review_process":{"approve":false,"reject":false,"resubmit":false},"Description_du_service":null,"Affaire":null,"Modified_By":{"name":"Sxxxxxxxx Jxxxxe","id":"2005xxxxxxxxxxx009","email":"xxxxxxxx@xxxxxxxx.fr"},"Sign_par":null,"$review":null,"Email_Opt_Out":false,"Contact_op_rationnel":null,"Modified_Time":"2021-07-08T16:06:07+02:00","mgt_group_id":null,"Statut_du_service":"Inactif","Unsubscribed_Time":null,"Libell_service":null,"Reprendre_contact_partir_du":null,"ID_import":null,"Date_d_but":null,"$orchestration":false,"Contact_signataire_du_contrat":null,"Date_tacite_renouvellement":null,"Contrat_sign":null,"Date_de_renouvellement":null,"Date_du_contrat":null,"$in_merge":false,"Dur_e_de_contrat":null,"Formule_souscrite":[],"Statut_du_contrat":"Brouillon","Tag":[],"$approval_state":"approved","R_f_rence":null}

And the message of error : 
  • {"code":"INVALID_DATA","details":{},"message":"the relation name given seems to be invalid","status":"error"}


In dont understand, why it s not  work !   I use the same function with contacts and account and is work. 

Can you help me ?