I believe Webform SugarCRM Integration may be just what you are after. It has a stable release 8.x-2.1
for Drupal 8.
If it doesn't suit your needs, you could write your own custom Webform handler. Something like the below, extending Webform's WebformHandlerBase
class:
<?php
namespace Drupal\your_module\Plugin\WebformHandler;
use Drupal\webform\Plugin\WebformHandlerBase;
/**
* Class SugarCrmWebformHandler.
*
* @package Drupal\your_module\Plugin\WebformHandler
*
* @WebformHandler(
* id = "sugar_crm",
* label = @Translation("Sugar CRM"),
* category = @Translation("External"),
* description = @Translation("Webform handler integrating with Sugar CRM."),
* cardinality = \Drupal\webform\Plugin\WebformHandlerInterface::CARDINALITY_SINGLE,
* results = \Drupal\webform\Plugin\WebformHandlerInterface::RESULTS_PROCESSED,
* )
*/
class SugarCrmWebformHandler extends WebformHandlerBase {
/**
* {@inheritdoc}
*/
public function postSave(WebformSubmissionInterface $webform_submission, $update = TRUE) {
# code for Sugar CRM...
}
}
Alternatively you could also look into using Webform's RemotePostWebformHandler
class which may provide some boilerplate for your integration.
See additional resources: