How update / add into Accounts multiples team id on a soap api call
<team_id> <id>2de90b27-3d78-cb39-eeb4-5773b4317135</id>, <id>2acb98df-6e97-d165-ce68-56b486ff1fb4</id> </team_id>
<?php $site_url = ''; $url = "https://${site_url}/service/v4_1/soap.php?wsdl"; $username = ""; $password = ""; //require NuSOAP require_once("./lib/nusoap.php"); //retrieve WSDL $client = new nusoap_client($url, 'wsdl'); //display errors $err = $client->getError(); if ($err) { echo '<h2>Constructor error</h2><pre>' . $err . '</pre>'; echo '<h2>Debug</h2><pre>' . htmlspecialchars($client->getDebug(), ENT_QUOTES) . '</pre>'; exit(); } //login ---------------------------------------------------- $login_parameters = array( 'user_auth' => array( 'user_name' => $username, 'password' => md5($password), 'version' => '1' ), 'application_name' => 'SoapTest', 'name_value_list' => array( ), ); $login_result = $client->call('login', $login_parameters); /* echo '<pre>'; print_r($login_result); echo '</pre>'; */ //get session id $session_id = $login_result['id']; //create account ------------------------------------- $set_entry_parameters = array( //session id "session" => $session_id, //The name of the module from which to retrieve records. "module_name" => "Accounts", //Record attributes "name_value_list" => array( //to update a record, you will nee to pass in a record id as commented below array("name" => "id", "value" => "4bc8c0bc-f175-11ec-b4b8-ac1f6b9b19c4"), array("name" => "name", "value" => "Test Account test multiples ids"), array("name" => "team_name" , "value" => [ ['id' => 1 , 'primary' => false], ['id' => 'West' , 'primary' => true] ]), ), ); $set_entry_result = $client->call("set_entry", $set_entry_parameters); echo "<pre>"; print_r($set_entry_result); echo "</pre>";