0151 355 4555

B2BCaptureByEmailAddress

Description

Checks the Data8 Business Universe for company information based on the input email address.

All available data for company is returned, as is all information that can be deduced towards the name of the email address.

View all Lead Capture (contact us for more information about this service) methods

Code Samples

<!-- Import the Integr8 Ajax API -->
<!-- NOTE: Get your own API key to use in the following script tag from: -->
<!-- http://www.data-8.co.uk/integr8/Admin/Ajax.aspx -->
<script src="https://webservices.data-8.co.uk/Javascript/Loader.ashx?key=your-api-key" type="text/javascript">
</script>

<script type="text/javascript">

function loadIntegr8() {
  // Load the LeadCapture Integr8 service
  data8.load('LeadCapture');
}

function B2BCaptureByEmailAddress(emailAddress) {
  /// <param name="emailAddress">string</param>
  var leadcapture = new data8.leadcapture();
  
  leadcapture.b2bcapturebyemailaddress(
    emailAddress,
    null,
    showB2BCaptureByEmailAddressResult
  );
}

function showB2BCaptureByEmailAddressResult(result) {
  // Check that the call succeeded, and show the error message if there was a problem.
  if (!result.Status.Success) {
    alert('Error: ' + result.Status.ErrorMessage);
  }
  else {
    // TODO: Process method results here.
    // Results can be extracted from the following fields:
    // result.EmailResult
    // result.Name
    // result.CompanyInformation
  }
}

loadIntegr8();

</script>