diff --git a/src/Phpforce/SoapClient/Soap/SoapClient.php b/src/Phpforce/SoapClient/Soap/SoapClient.php index 10a5e13..5cfe201 100755 --- a/src/Phpforce/SoapClient/Soap/SoapClient.php +++ b/src/Phpforce/SoapClient/Soap/SoapClient.php @@ -46,6 +46,10 @@ public function getSoapTypes() $properties = array_merge($properties, $this->types['sObject']); } + if ($typeName == 'SingleEmailMessage' && array_key_exists('Email', $this->types)) { + $properties = array_merge($properties, $this->types['Email']); + } + $this->types[$typeName] = $properties; } }