zelibox / microsoft-dynamics-soap
There is no license information available for the latest version (dev-master) of this package.
Microsoft Dynamics SOAP integration with PHP (http authentication)
dev-master
2015-08-19 12:34 UTC
This package is not auto-updated.
Last update: 2025-01-10 21:03:10 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());