Trying to modify a users phone number with
$request = (new UserModifyRequest17sp4())
->setUserId($userId)
->setphoneNumber($phoneNumber);
getting the following error
Field userId is required on CWM\BroadWorksConnector\Ocip\Models\AuthenticationRequest.
Trying to modify a users phone number with $request = (new UserModifyRequest17sp4()) ->setUserId($userId) ->setphoneNumber($phoneNumber); getting the following error Field userId is required on CWM\BroadWorksConnector\Ocip\Models\AuthenticationRequest.
CWM\BroadWorksConnector\Ocip\Models\UserModifyRequest17sp4::__set_state(array( 'userId' => 'spare3.xxx@xxxx.com', 'lastName' => NULL, 'firstName' => NULL, 'callingLineIdLastName' => NULL, 'callingLineIdFirstName' => NULL, 'nameDialingName' => NULL, 'hiraganaLastName' => NULL, 'hiraganaFirstName' => NULL, 'phoneNumber' => '+xxxxxxx', 'extension' => NULL, 'callingLineIdPhoneNumber' => NULL, 'oldPassword' => NULL, 'newPassword' => NULL, 'department' => NULL, 'language' => NULL, 'timeZone' => NULL, 'sipAliasList' => NULL, 'endpoint' => NULL, 'title' => NULL, 'pagerPhoneNumber' => NULL, 'mobilePhoneNumber' => NULL, 'emailAddress' => NULL, 'yahooId' => NULL, 'addressLocation' => NULL, 'address' => NULL, 'networkClassOfService' => NULL, 'officeZoneName' => NULL, 'primaryZoneName' => NULL, 'impId' => NULL, 'impPassword' => NULL, 'alternateUserIdList' => NULL, ))
where am i going wrong?
many thanks