Unable to modify custom related field record wtih REST API

Hi Community,

Using SuiteCRM (7.8.18 w API 4.1), we create a record in Opportunity Module but we aren’t able to modify with REST API a Custom Related Field (“contact_initiateur_c” related to Contacts Module ) we have created in this Opportunity Module.

Any help or advice would be very welcome !! :slight_smile:

$set_entry_parameters = [
                    //session id
                    "session" => $session_id,

                   //The name of the module from which to retrieve records.
                    "module_name" => "Opportunities",

                   //Record attributes
                    "name_value_list" => [
                        [
                            "name" => "name",
                            "value" => $name,
                        ],
                        [
                            "name" => "account_id",
                            "value" => $idClientFinal,
                        ],
                        [
                            "name" => "contact_initiateur_c",
                            "value" => $idcontactInitiateur,
                        ],
                        
                    ],
                ];
                //  Appel a l'API Suite CRM creation d'un  projet Cobiz
                $retour = $this->callWithCurl("set_entry", $set_entry_parameters);
                $this->logger->info("SuiteCRMHelper createCobeasyProjectInCRM() retour : ", [$retour]);