Is this something that would work to get the correct client_id? When querying direct from the DB, the other functionality is still not working -so - I am thinking of trying this approach.
Can you confirm whether or not it would get the needed data?
$record_record = $client->client_get_by_username($session_id, $username);
$sysuserid = $record_record['userid'];
$sys_userid = $sysuserid;
$client_record = $client->client_get_id($session_id, $sys_userid);
Also, I must have some kind of different version because I see: