zelibox / microsoft-dynamics-soap
Microsoft Dynamics SOAP integration with PHP (http authentication)
Installs: 21
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/zelibox/microsoft-dynamics-soap
This package is not auto-updated.
Last update: 2025-10-18 00:45:36 UTC
README
Microsoft Dynamics SOAP integration with PHP (http authentication)
##Connect:
$microsoftDynamicsSOAP = new \MicrosoftDynamicsSOAP\Connector( 'ORG\Username', 'password', 'http://host.com/TEST/XRMServices/2011/Organization.svc/web' );
##Example Create:
$requestCreate = $microsoftDynamicsSOAP->createRequestCreate(); $requestCreate ->setEntityName('phonecall'); ->addValue('string', 'subject', 'New message') ->addValue('string', 'phonenumber', '900990099') ->addValue('boolean', 'is_active', false) ->addValue( 'entityReference', 'client', array( 'logicalName' => 'client', 'id' => 'A83C1811-9336-E511-9122-005056995950' ) ) ->addValue('datetime', 'date_contact', new \DateTime()); /** @var ResponseCreate $response */ $response = $requestCreate->send(); echo $response->getGuid();
##Example RetrieveMultiple:
$requestRetrieveMultiple = $microsoftDynamicsSOAP->createRequestRetrieveMultiple(); $requestRetrieveMultiple ->setEntityName('lead') ->setColumns(array( // not required 'subject', 'phonenumber' )); /** @var ResponseRetrieveMultiple $response */ $response = $requestRetrieveMultiple->send(); var_dump($response->getEntities());